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

Function sha2small_final

Sming/Components/crypto/src/sha2small.cpp:34–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34void sha2small_final(uint8_t* digest, crypto_sha256_context_t* ctx, bool isSha224)
35{
36 decltype(ctx->state) val;
37 hashFinal<true>(ctx, sha2small_process, val);
38 if(isSha224) {
39 Range<SHA224_SIZE / sizeof(val[0])>::encode(digest, val);
40 } else {
41 Range<SHA256_SIZE / sizeof(val[0])>::encode(digest, val);
42 }
43}
44
45} // namespace
46

Callers 1

CRYPTO_FUNC_FINALFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected