diff options
author | lloyd <[email protected]> | 2008-06-10 17:20:02 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-06-10 17:20:02 +0000 |
commit | dec416d649715617e0eb66b18d69f6dbe9c308b3 (patch) | |
tree | 7ff26fe9cee0f11a15977106d985e78c01fb1e51 /src/pk_util.cpp | |
parent | 2aef9fa5bc25984a838a51a93ac0e918d2d1bbac (diff) |
Pass a RNG reference to the EMSA encoder functions
Diffstat (limited to 'src/pk_util.cpp')
-rw-r--r-- | src/pk_util.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pk_util.cpp b/src/pk_util.cpp index c5f7f8d67..24499ad83 100644 --- a/src/pk_util.cpp +++ b/src/pk_util.cpp @@ -4,6 +4,7 @@ *************************************************/ #include <botan/pk_util.h> +#include <botan/libstate.h> namespace Botan { @@ -53,7 +54,8 @@ bool EMSA::verify(const MemoryRegion<byte>& coded, u32bit key_bits) throw() { try { - return (coded == encoding_of(raw, key_bits)); + return (coded == encoding_of(raw, key_bits, + global_state().prng_reference())); } catch(Invalid_Argument) { |