diff options
author | lloyd <[email protected]> | 2015-01-08 13:43:05 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2015-01-08 13:43:05 +0000 |
commit | dabb6fd8a035ad0b72740f49b149aae25c3de9d6 (patch) | |
tree | 3a9d14c0be3bcf33b83f2d3ed80023b4de5fc9ce | |
parent | 046da982c11170f2d37f9b3acd803a56fe325abd (diff) |
No need to reseed RNG in DSA sign as RNG is no longer used
-rw-r--r-- | src/lib/pubkey/dsa/dsa.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/pubkey/dsa/dsa.cpp b/src/lib/pubkey/dsa/dsa.cpp index 1dc2173da..c301ddf39 100644 --- a/src/lib/pubkey/dsa/dsa.cpp +++ b/src/lib/pubkey/dsa/dsa.cpp @@ -79,13 +79,11 @@ DSA_Signature_Operation::DSA_Signature_Operation(const DSA_PrivateKey& dsa, secure_vector<byte> DSA_Signature_Operation::sign(const byte msg[], size_t msg_len, - RandomNumberGenerator& rng) + RandomNumberGenerator&) { - rng.add_entropy(msg, msg_len); - BigInt i(msg, msg_len); - if(i >= q) + while(i >= q) i -= q; const BigInt k = generate_rfc6979_nonce(x, q, i, m_hash); |