| 794 | EncryptCipherRandomSalt generatedSalt; |
| 795 | |
| 796 | BaseCipher(const EncryptCipherDomainId& dId, const EncryptCipherBaseKeyId& kId) |
| 797 | : domainId(dId), len(deterministicRandom()->randomInt(AES_256_KEY_LENGTH / 2, AES_256_KEY_LENGTH + 1)), |
| 798 | keyId(kId), key(std::make_unique<uint8_t[]>(len)) { |
| 799 | deterministicRandom()->randomBytes(key.get(), len); |
| 800 | } |
| 801 | }; |
| 802 | |
| 803 | using BaseKeyMap = std::unordered_map<EncryptCipherBaseKeyId, Reference<BaseCipher>>; |
nothing calls this directly
no test coverage detected