SHA-384 initialization. Begins a SHA-384 operation. */
| 423 | |
| 424 | /* SHA-384 initialization. Begins a SHA-384 operation. */ |
| 425 | void |
| 426 | SHA384_Init(SHA384_CTX * ctx) |
| 427 | { |
| 428 | |
| 429 | /* Zero bits processed so far */ |
| 430 | ctx->count[0] = ctx->count[1] = 0; |
| 431 | |
| 432 | /* Magic initialization constants */ |
| 433 | ctx->state[0] = 0xcbbb9d5dc1059ed8ULL; |
| 434 | ctx->state[1] = 0x629a292a367cd507ULL; |
| 435 | ctx->state[2] = 0x9159015a3070dd17ULL; |
| 436 | ctx->state[3] = 0x152fecd8f70e5939ULL; |
| 437 | ctx->state[4] = 0x67332667ffc00b31ULL; |
| 438 | ctx->state[5] = 0x8eb44a8768581511ULL; |
| 439 | ctx->state[6] = 0xdb0c2e0d64f98fa7ULL; |
| 440 | ctx->state[7] = 0x47b5481dbefa4fa4ULL; |
| 441 | } |
| 442 | |
| 443 | /* Add bytes into the SHA-384 hash */ |
| 444 | void |
no outgoing calls
no test coverage detected