* SHA-512 finalization. Pads the input data, exports the hash value, * and clears the context state. */
| 321 | * and clears the context state. |
| 322 | */ |
| 323 | void |
| 324 | SHA512_Final(unsigned char digest[static SHA512_DIGEST_LENGTH], SHA512_CTX *ctx) |
| 325 | { |
| 326 | |
| 327 | /* Add padding */ |
| 328 | SHA512_Pad(ctx); |
| 329 | |
| 330 | /* Write the hash */ |
| 331 | be64enc_vect(digest, ctx->state, SHA512_DIGEST_LENGTH); |
| 332 | |
| 333 | /* Clear the context state */ |
| 334 | explicit_bzero(ctx, sizeof(*ctx)); |
| 335 | } |
| 336 | |
| 337 | /*** SHA-512t: *********************************************************/ |
| 338 | /* |
nothing calls this directly
no test coverage detected