| 141 | } |
| 142 | |
| 143 | Reference<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 | |
| 152 | Reference<BlobCipherKey> BlobCipherKeyIdCache::insertBaseCipherKey(const EncryptCipherBaseKeyId& baseCipherId, |
| 153 | const uint8_t* baseCipher, |
no test coverage detected