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/nr.cpp | |
parent | c66c9ad30fc635f25a0564ad8b7722fceda92a73 (diff) |
Keypair::check_key no longer references global PRNG
Diffstat (limited to 'src/nr.cpp')
-rw-r--r-- | src/nr.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/nr.cpp b/src/nr.cpp index 7e76d67ad..0acbd0bb0 100644 --- a/src/nr.cpp +++ b/src/nr.cpp @@ -119,8 +119,10 @@ bool NR_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)") ); } |