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

Function SHA512_224_Final

freebsd/crypto/sha2/sha512c.c:366–378  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

364}
365
366void
367SHA512_224_Final(unsigned char digest[static SHA512_224_DIGEST_LENGTH], SHA512_CTX * ctx)
368{
369
370 /* Add padding */
371 SHA512_Pad(ctx);
372
373 /* Write the hash */
374 be64enc_vect(digest, ctx->state, SHA512_224_DIGEST_LENGTH);
375
376 /* Clear the context state */
377 explicit_bzero(ctx, sizeof(*ctx));
378}
379
380void
381SHA512_256_Init(SHA512_CTX * ctx)

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