aboutsummaryrefslogtreecommitdiffstats
path: root/src/nr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/nr.cpp')
-rw-r--r--src/nr.cpp6
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)")
);
}