SHA-256 initialization. Begins a SHA-256 operation. */
| 226 | |
| 227 | /* SHA-256 initialization. Begins a SHA-256 operation. */ |
| 228 | void |
| 229 | SHA256_Init(SHA256_CTX * ctx) |
| 230 | { |
| 231 | |
| 232 | /* Zero bits processed so far */ |
| 233 | ctx->count = 0; |
| 234 | |
| 235 | /* Magic initialization constants */ |
| 236 | ctx->state[0] = 0x6A09E667; |
| 237 | ctx->state[1] = 0xBB67AE85; |
| 238 | ctx->state[2] = 0x3C6EF372; |
| 239 | ctx->state[3] = 0xA54FF53A; |
| 240 | ctx->state[4] = 0x510E527F; |
| 241 | ctx->state[5] = 0x9B05688C; |
| 242 | ctx->state[6] = 0x1F83D9AB; |
| 243 | ctx->state[7] = 0x5BE0CD19; |
| 244 | } |
| 245 | |
| 246 | /* Add bytes into the hash */ |
| 247 | void |
no outgoing calls
no test coverage detected