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

Method StreamCipherKey

flow/StreamCipher.cpp:73–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73StreamCipherKey::StreamCipherKey(int size)
74 : id(deterministicRandom()->randomUniqueID()), arr(std::make_unique<uint8_t[]>(size)), keySize(size) {
75 memset(arr.get(), 0, keySize);
76 cipherKeys[id] = this;
77}
78
79StreamCipherKey::~StreamCipherKey() {
80 reset();

Callers

nothing calls this directly

Calls 3

deterministicRandomFunction · 0.85
randomUniqueIDMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected