From dabb6fd8a035ad0b72740f49b149aae25c3de9d6 Mon Sep 17 00:00:00 2001 From: lloyd Date: Thu, 8 Jan 2015 13:43:05 +0000 Subject: No need to reseed RNG in DSA sign as RNG is no longer used --- src/lib/pubkey/dsa/dsa.cpp | 6 ++---- 1 file 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 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); -- cgit v1.2.3