MCPcopy Create free account
hub / github.com/SmingHub/Sming / sha2big_final

Function sha2big_final

Sming/Components/crypto/src/sha2big.cpp:42–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42void sha2big_final(const crypto_sha512_context_t* ctx, uint8_t* digest, bool isSha384)
43{
44 decltype(ctx->state) val;
45 hashFinal<true>(ctx, sha2big_process, val);
46 if(isSha384) {
47 Range<SHA384_SIZE / sizeof(val[0])>::encode(digest, val);
48 } else {
49 Range<SHA512_SIZE / sizeof(val[0])>::encode(digest, val);
50 }
51}
52} // namespace
53
54/*

Callers 1

CRYPTO_FUNC_FINALFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected