Initialize SHA-256 state. */
| 83 | |
| 84 | /** Initialize SHA-256 state. */ |
| 85 | void inline Initialize(uint32_t* s) |
| 86 | { |
| 87 | s[0] = 0x6a09e667ul; |
| 88 | s[1] = 0xbb67ae85ul; |
| 89 | s[2] = 0x3c6ef372ul; |
| 90 | s[3] = 0xa54ff53aul; |
| 91 | s[4] = 0x510e527ful; |
| 92 | s[5] = 0x9b05688cul; |
| 93 | s[6] = 0x1f83d9abul; |
| 94 | s[7] = 0x5be0cd19ul; |
| 95 | } |
| 96 | |
| 97 | /** Perform a number of SHA-256 transformations, processing 64-byte chunks. */ |
| 98 | void Transform(uint32_t* s, const unsigned char* chunk, size_t blocks) |
no outgoing calls
no test coverage detected