MCPcopy Create free account
hub / github.com/F-Stack/f-stack / SHA512_256_Final

Function SHA512_256_Final

freebsd/crypto/sha2/sha512c.c:405–417  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

403}
404
405void
406SHA512_256_Final(unsigned char digest[static SHA512_256_DIGEST_LENGTH], SHA512_CTX * ctx)
407{
408
409 /* Add padding */
410 SHA512_Pad(ctx);
411
412 /* Write the hash */
413 be64enc_vect(digest, ctx->state, SHA512_256_DIGEST_LENGTH);
414
415 /* Clear the context state */
416 explicit_bzero(ctx, sizeof(*ctx));
417}
418
419/*** SHA-384: *********************************************************/
420/*

Callers

nothing calls this directly

Calls 3

explicit_bzeroFunction · 0.85
SHA512_PadFunction · 0.70
be64enc_vectFunction · 0.70

Tested by

no test coverage detected