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

Method sha256String

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

Source from the content-addressed store, hash-verified

33}
34
35std::string BytesUtils::sha256String(const BytesView& data) {
36 return sha256String(data.data(), data.size());
37}
38
39std::string BytesUtils::sha256String(const Byte* data, size_t length) {
40 std::array<Byte, SHA256_DIGEST_LENGTH> digest;

Callers

nothing calls this directly

Calls 4

doDigestFunction · 0.85
bytesToHexStringFunction · 0.85
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected