MCPcopy Create free account
hub / github.com/Snapchat/Valdi / sha256

Method sha256

valdi/src/valdi/runtime/Utils/BytesUtils.cpp:16–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14namespace Valdi {
15
16Ref<ByteBuffer> BytesUtils::sha256(const BytesView& data) {
17 return sha256(data.data(), data.size());
18}
19
20static void doDigest(const Byte* data, size_t length, Byte* output) {
21 SHA256_CTX sha256;

Callers

nothing calls this directly

Calls 4

doDigestFunction · 0.85
dataMethod · 0.45
sizeMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected