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

Method BaseCipher

flow/BlobCipher.cpp:796–800  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

794 EncryptCipherRandomSalt generatedSalt;
795
796 BaseCipher(const EncryptCipherDomainId& dId, const EncryptCipherBaseKeyId& kId)
797 : domainId(dId), len(deterministicRandom()->randomInt(AES_256_KEY_LENGTH / 2, AES_256_KEY_LENGTH + 1)),
798 keyId(kId), key(std::make_unique<uint8_t[]>(len)) {
799 deterministicRandom()->randomBytes(key.get(), len);
800 }
801 };
802
803 using BaseKeyMap = std::unordered_map<EncryptCipherBaseKeyId, Reference<BaseCipher>>;

Callers

nothing calls this directly

Calls 4

deterministicRandomFunction · 0.85
randomBytesMethod · 0.80
getMethod · 0.65
randomIntMethod · 0.45

Tested by

no test coverage detected