SHA-512 initialization. Begins a SHA-512 operation. */
| 256 | |
| 257 | /* SHA-512 initialization. Begins a SHA-512 operation. */ |
| 258 | void |
| 259 | SHA512_Init(SHA512_CTX * ctx) |
| 260 | { |
| 261 | |
| 262 | /* Zero bits processed so far */ |
| 263 | ctx->count[0] = ctx->count[1] = 0; |
| 264 | |
| 265 | /* Magic initialization constants */ |
| 266 | ctx->state[0] = 0x6a09e667f3bcc908ULL; |
| 267 | ctx->state[1] = 0xbb67ae8584caa73bULL; |
| 268 | ctx->state[2] = 0x3c6ef372fe94f82bULL; |
| 269 | ctx->state[3] = 0xa54ff53a5f1d36f1ULL; |
| 270 | ctx->state[4] = 0x510e527fade682d1ULL; |
| 271 | ctx->state[5] = 0x9b05688c2b3e6c1fULL; |
| 272 | ctx->state[6] = 0x1f83d9abfb41bd6bULL; |
| 273 | ctx->state[7] = 0x5be0cd19137e2179ULL; |
| 274 | } |
| 275 | |
| 276 | /* Add bytes into the hash */ |
| 277 | void |
no outgoing calls
no test coverage detected