diff options
author | lloyd <[email protected]> | 2012-07-19 21:43:42 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2012-07-19 21:43:42 +0000 |
commit | 7e3b82efa459b2c08d1d12b06951cdc22b16df6e (patch) | |
tree | c797f79f88d14039dce298530ead6ac731e50997 /src/pubkey/rw | |
parent | f5775ee4aa20abd43b025869c733ed1b473f4034 (diff) |
In RSA and RW signers, add the message contents to the RNG state
Diffstat (limited to 'src/pubkey/rw')
-rw-r--r-- | src/pubkey/rw/rw.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pubkey/rw/rw.cpp b/src/pubkey/rw/rw.cpp index 11a394fad..64fcc37cc 100644 --- a/src/pubkey/rw/rw.cpp +++ b/src/pubkey/rw/rw.cpp @@ -75,6 +75,8 @@ secure_vector<byte> RW_Signature_Operation::sign(const byte msg[], size_t msg_len, RandomNumberGenerator& rng) { + rng.add_entropy(msg, msg_len); + if(!blinder.initialized()) { BigInt k(rng, std::min<size_t>(160, n.bits() - 1)); |