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

Method getLatestCipherKey

flow/BlobCipher.cpp:132–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132Reference<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
143Reference<BlobCipherKey> BlobCipherKeyIdCache::getCipherByBaseCipherId(const EncryptCipherBaseKeyId& baseCipherKeyId,
144 const EncryptCipherRandomSalt& salt) {

Calls 10

TraceEventClass · 0.85
nowFunction · 0.85
detailMethod · 0.80
getCreationTimeMethod · 0.80
getBaseCipherIdMethod · 0.80
getMethod · 0.65
presentMethod · 0.45
findMethod · 0.45
endMethod · 0.45
isValidMethod · 0.45

Tested by

no test coverage detected