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

Method BlobCipherKey

flow/BlobCipher.cpp:46–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44// BlobCipherKey class methods
45
46BlobCipherKey::BlobCipherKey(const EncryptCipherDomainId& domainId,
47 const EncryptCipherBaseKeyId& baseCiphId,
48 const uint8_t* baseCiph,
49 int baseCiphLen) {
50 EncryptCipherRandomSalt salt;
51 if (g_network->isSimulated()) {
52 salt = deterministicRandom()->randomUInt64();
53 } else {
54 salt = nondeterministicRandom()->randomUInt64();
55 }
56 initKey(domainId, baseCiph, baseCiphLen, baseCiphId, salt);
57}
58
59BlobCipherKey::BlobCipherKey(const EncryptCipherDomainId& domainId,
60 const EncryptCipherBaseKeyId& baseCiphId,

Callers

nothing calls this directly

Calls 4

deterministicRandomFunction · 0.85
nondeterministicRandomFunction · 0.85
randomUInt64Method · 0.80
isSimulatedMethod · 0.45

Tested by

no test coverage detected