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

Method finish

flow/StreamCipher.cpp:141–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139}
140
141StringRef EncryptionStreamCipher::finish(Arena& arena) {
142 auto ciphertext = new (arena) unsigned char[AES_BLOCK_SIZE];
143 int bytes{ 0 };
144 EVP_EncryptFinal_ex(cipher.getCtx(), ciphertext, &bytes);
145 return StringRef(ciphertext, bytes);
146}
147
148DecryptionStreamCipher::DecryptionStreamCipher(const StreamCipherKey* key, const StreamCipher::IV& iv)
149 : cipher(key->size()) {

Callers 1

StreamCipher.cppFile · 0.45

Calls 3

getHmacCtxMethod · 0.80
StringRefClass · 0.50
getCtxMethod · 0.45

Tested by

no test coverage detected