diff options
Diffstat (limited to 'src/lib/pubkey')
-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); |