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

Function getEncryptBlobCipherKey

fdbclient/BlobGranuleFiles.cpp:194–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192
193namespace {
194BlobGranuleFileEncryptionKeys getEncryptBlobCipherKey(const BlobGranuleCipherKeysCtx cipherKeysCtx) {
195 BlobGranuleFileEncryptionKeys eKeys;
196
197 eKeys.textCipherKey = makeReference<BlobCipherKey>(cipherKeysCtx.textCipherKey.encryptDomainId,
198 cipherKeysCtx.textCipherKey.baseCipherId,
199 cipherKeysCtx.textCipherKey.baseCipher.begin(),
200 cipherKeysCtx.textCipherKey.baseCipher.size(),
201 cipherKeysCtx.textCipherKey.salt);
202 eKeys.headerCipherKey = makeReference<BlobCipherKey>(cipherKeysCtx.headerCipherKey.encryptDomainId,
203 cipherKeysCtx.headerCipherKey.baseCipherId,
204 cipherKeysCtx.headerCipherKey.baseCipher.begin(),
205 cipherKeysCtx.headerCipherKey.baseCipher.size(),
206 cipherKeysCtx.headerCipherKey.salt);
207
208 return eKeys;
209}
210
211void validateEncryptionHeaderDetails(const BlobGranuleFileEncryptionKeys& eKeys,
212 const BlobCipherEncryptHeader& header,

Callers 4

encryptMethod · 0.85
decryptMethod · 0.85
encryptMethod · 0.85
decryptMethod · 0.85

Calls 2

beginMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected