| 130 | } |
| 131 | |
| 132 | Reference<BlobCipherKey> BlobCipherKeyIdCache::getLatestCipherKey() { |
| 133 | if (!latestBaseCipherKeyId.present()) { |
| 134 | return Reference<BlobCipherKey>(); |
| 135 | } |
| 136 | ASSERT_NE(latestBaseCipherKeyId.get(), ENCRYPT_INVALID_CIPHER_KEY_ID); |
| 137 | ASSERT(latestRandomSalt.present()); |
| 138 | ASSERT_NE(latestRandomSalt.get(), ENCRYPT_INVALID_RANDOM_SALT); |
| 139 | |
| 140 | return getCipherByBaseCipherId(latestBaseCipherKeyId.get(), latestRandomSalt.get()); |
| 141 | } |
| 142 | |
| 143 | Reference<BlobCipherKey> BlobCipherKeyIdCache::getCipherByBaseCipherId(const EncryptCipherBaseKeyId& baseCipherKeyId, |
| 144 | const EncryptCipherRandomSalt& salt) { |
no test coverage detected