SHA-224 initialization. Begins a SHA-224 operation. */
| 308 | |
| 309 | /* SHA-224 initialization. Begins a SHA-224 operation. */ |
| 310 | void |
| 311 | SHA224_Init(SHA224_CTX * ctx) |
| 312 | { |
| 313 | |
| 314 | /* Zero bits processed so far */ |
| 315 | ctx->count = 0; |
| 316 | |
| 317 | /* Magic initialization constants */ |
| 318 | ctx->state[0] = 0xC1059ED8; |
| 319 | ctx->state[1] = 0x367CD507; |
| 320 | ctx->state[2] = 0x3070DD17; |
| 321 | ctx->state[3] = 0xF70E5939; |
| 322 | ctx->state[4] = 0xFFC00B31; |
| 323 | ctx->state[5] = 0x68581511; |
| 324 | ctx->state[6] = 0x64f98FA7; |
| 325 | ctx->state[7] = 0xBEFA4FA4; |
| 326 | } |
| 327 | |
| 328 | /* Add bytes into the SHA-224 hash */ |
| 329 | void |
no outgoing calls
no test coverage detected