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

Function encrypt

flowbench/BenchEncrypt.cpp:32–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32static inline Standalone<StringRef> encrypt(const StreamCipherKey* const key,
33 const StreamCipher::IV& iv,
34 unsigned char const* data,
35 size_t len) {
36 EncryptionStreamCipher encryptor(key, iv);
37 Arena arena;
38 auto encrypted = encryptor.encrypt(data, len, arena);
39 return Standalone<StringRef>(encrypted, arena);
40}
41
42static void bench_encrypt(benchmark::State& state) {
43 auto bytes = state.range(0);

Callers 6

writeMutationFunction · 0.85
encryptMetadataMethod · 0.85
bench_encryptFunction · 0.85
bench_decryptFunction · 0.85
finalizeMethod · 0.85
toBytesMethod · 0.85

Calls 1

encryptMethod · 0.45

Tested by

no test coverage detected