| 71 | } |
| 72 | |
| 73 | StreamCipherKey::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 | |
| 79 | StreamCipherKey::~StreamCipherKey() { |
| 80 | reset(); |
nothing calls this directly
no test coverage detected