MCPcopy Create free account
hub / github.com/apple/foundationdb / HmacSha256StreamCipher

Method HmacSha256StreamCipher

flow/StreamCipher.cpp:172–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170}
171
172HmacSha256StreamCipher::HmacSha256StreamCipher() : cipher(EVP_MAX_KEY_LENGTH) {
173 HMAC_Init_ex(cipher.getHmacCtx(), NULL, 0, EVP_sha256(), nullptr);
174}
175
176StringRef HmacSha256StreamCipher::digest(unsigned char const* data, int len, Arena& arena) {
177 CODE_PROBE(true, "Digest using StreamCipher");

Callers

nothing calls this directly

Calls 1

getHmacCtxMethod · 0.80

Tested by

no test coverage detected