diff options
author | Jack Lloyd <[email protected]> | 2019-09-13 06:31:02 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2019-09-13 06:31:02 -0400 |
commit | b7eb3ca298fd570a4770e09593f9dc9c34f0e27b (patch) | |
tree | fc8dc4ec97ee7aa0b69a49c01de9e0b287f525f7 /src/lib/pubkey | |
parent | fef0808f2d5b7f64f72025c547c8fef00dbe3764 (diff) | |
parent | d8f23de97ba48449befae12eda4f6853e74b6a74 (diff) |
Merge GH #2104 Add a variant of RandomNumberGenerator::random_vec
Diffstat (limited to 'src/lib/pubkey')
-rw-r--r-- | src/lib/pubkey/keypair/keypair.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/pubkey/keypair/keypair.cpp b/src/lib/pubkey/keypair/keypair.cpp index e8d88e99f..d5cd00172 100644 --- a/src/lib/pubkey/keypair/keypair.cpp +++ b/src/lib/pubkey/keypair/keypair.cpp @@ -31,8 +31,8 @@ bool encryption_consistency_check(RandomNumberGenerator& rng, if(encryptor.maximum_input_size() == 0) return true; - std::vector<uint8_t> plaintext = - unlock(rng.random_vec(encryptor.maximum_input_size() - 1)); + std::vector<uint8_t> plaintext; + rng.random_vec(plaintext, encryptor.maximum_input_size() - 1); std::vector<uint8_t> ciphertext = encryptor.encrypt(plaintext, rng); if(ciphertext == plaintext) |