diff options
author | lloyd <[email protected]> | 2008-06-10 19:10:34 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-06-10 19:10:34 +0000 |
commit | b36db2d74992f2ea80329378c32a6321d6a60b26 (patch) | |
tree | 426add866dd75f8b3e73e0bde0ae5d936c305662 /src/keypair.cpp | |
parent | 54fecdc60438d15f970055bb691e18c6469e1785 (diff) |
Change PK_Signer::signature to take a RandomNumberGenerator reference
instead of always using the global PRNG.
Diffstat (limited to 'src/keypair.cpp')
-rw-r--r-- | src/keypair.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/keypair.cpp b/src/keypair.cpp index 242937668..940f0c028 100644 --- a/src/keypair.cpp +++ b/src/keypair.cpp @@ -49,9 +49,10 @@ void check_key(RandomNumberGenerator& rng, SecureVector<byte> signature; - try { - signature = sig->sign_message(message); - } + try + { + signature = sig->sign_message(message, rng); + } catch(Encoding_Error) { return; |