diff options
author | lloyd <[email protected]> | 2008-05-24 19:02:31 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-05-24 19:02:31 +0000 |
commit | df8691c753ad17d364c868f9b34a56a1f52bb9cf (patch) | |
tree | 2fd98f1fadff870727154a7085e2caa2a5e4b457 /src/dsa.cpp | |
parent | c66c9ad30fc635f25a0564ad8b7722fceda92a73 (diff) |
Keypair::check_key no longer references global PRNG
Diffstat (limited to 'src/dsa.cpp')
-rw-r--r-- | src/dsa.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/dsa.cpp b/src/dsa.cpp index 1a61c0cd2..1d755e045 100644 --- a/src/dsa.cpp +++ b/src/dsa.cpp @@ -120,8 +120,10 @@ bool DSA_PrivateKey::check_key(RandomNumberGenerator& rng, bool strong) const if(!strong) return true; - try { - KeyPair::check_key(get_pk_signer(*this, "EMSA1(SHA-1)"), + try + { + KeyPair::check_key(rng, + get_pk_signer(*this, "EMSA1(SHA-1)"), get_pk_verifier(*this, "EMSA1(SHA-1)") ); } |