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

Method getCipherByBaseCipherId

flow/BlobCipher.cpp:143–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141}
142
143Reference<BlobCipherKey> BlobCipherKeyIdCache::getCipherByBaseCipherId(const EncryptCipherBaseKeyId& baseCipherKeyId,
144 const EncryptCipherRandomSalt& salt) {
145 BlobCipherKeyIdCacheMapCItr itr = keyIdCache.find(getCacheKey(baseCipherKeyId, salt));
146 if (itr == keyIdCache.end()) {
147 return Reference<BlobCipherKey>();
148 }
149 return itr->second;
150}
151
152Reference<BlobCipherKey> BlobCipherKeyIdCache::insertBaseCipherKey(const EncryptCipherBaseKeyId& baseCipherId,
153 const uint8_t* baseCipher,

Callers 1

getCipherKeyMethod · 0.80

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected