| 327 | } |
| 328 | |
| 329 | Reference<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 | |
| 341 | void BlobCipherKeyCache::resetEncryptDomainId(const EncryptCipherDomainId domainId) { |
| 342 | auto domainItr = domainCacheMap.find(domainId); |
no test coverage detected