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

Function getRandomIV

flowbench/BenchEncrypt.cpp:26–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24#include "flowbench/GlobalData.h"
25
26static StreamCipher::IV getRandomIV() {
27 StreamCipher::IV iv;
28 deterministicRandom()->randomBytes(iv.data(), iv.size());
29 return iv;
30}
31
32static inline Standalone<StringRef> encrypt(const StreamCipherKey* const key,
33 const StreamCipher::IV& iv,

Callers 2

bench_encryptFunction · 0.85
bench_decryptFunction · 0.85

Calls 4

deterministicRandomFunction · 0.85
randomBytesMethod · 0.80
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected