michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef _SHA_256_H_ michael@0: #define _SHA_256_H_ michael@0: michael@0: #include "prtypes.h" michael@0: michael@0: struct SHA256ContextStr { michael@0: union { michael@0: PRUint32 w[64]; /* message schedule, input buffer, plus 48 words */ michael@0: PRUint8 b[256]; michael@0: } u; michael@0: PRUint32 h[8]; /* 8 state variables */ michael@0: PRUint32 sizeHi,sizeLo; /* 64-bit count of hashed bytes. */ michael@0: }; michael@0: michael@0: #endif /* _SHA_256_H_ */