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

Method getCipherKey

flow/BlobCipher.cpp:329–339  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

327}
328
329Reference<BlobCipherKey> BlobCipherKeyCache::getCipherKey(const EncryptCipherDomainId& domainId,
330 const EncryptCipherBaseKeyId& baseCipherId,
331 const EncryptCipherRandomSalt& salt) {
332 auto domainItr = domainCacheMap.find(domainId);
333 if (domainItr == domainCacheMap.end()) {
334 return Reference<BlobCipherKey>();
335 }
336
337 Reference<BlobCipherKeyIdCache> keyIdCache = domainItr->second;
338 return keyIdCache->getCipherByBaseCipherId(baseCipherId, salt);
339}
340
341void BlobCipherKeyCache::resetEncryptDomainId(const EncryptCipherDomainId domainId) {
342 auto domainItr = domainCacheMap.find(domainId);

Calls 3

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected