Initialize SHA-256 state. */
| 63 | |
| 64 | /** Initialize SHA-256 state. */ |
| 65 | void inline Initialize(uint32_t* s) |
| 66 | { |
| 67 | s[0] = 0x6a09e667ul; |
| 68 | s[1] = 0xbb67ae85ul; |
| 69 | s[2] = 0x3c6ef372ul; |
| 70 | s[3] = 0xa54ff53aul; |
| 71 | s[4] = 0x510e527ful; |
| 72 | s[5] = 0x9b05688cul; |
| 73 | s[6] = 0x1f83d9abul; |
| 74 | s[7] = 0x5be0cd19ul; |
| 75 | } |
| 76 | |
| 77 | /** Perform a number of SHA-256 transformations, processing 64-byte chunks. */ |
| 78 | void Transform(uint32_t* s, const unsigned char* chunk, size_t blocks) |
no outgoing calls
no test coverage detected