diff options
author | lloyd <[email protected]> | 2008-06-27 15:37:29 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-06-27 15:37:29 +0000 |
commit | 9d77dd59ab4a7d122a20b0d89ae081a177f38287 (patch) | |
tree | 9a6c0bbda944a7494932cef883d348d1f16f804e /src/pk_util.cpp | |
parent | 59865d69871bdd936cf77a7fde38aa7657d04c40 (diff) |
Reorganize the EMSA classes, and remove the last references to prng_reference
in the library ccode.
Diffstat (limited to 'src/pk_util.cpp')
-rw-r--r-- | src/pk_util.cpp | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/src/pk_util.cpp b/src/pk_util.cpp index 24499ad83..1976436ea 100644 --- a/src/pk_util.cpp +++ b/src/pk_util.cpp @@ -1,10 +1,9 @@ /************************************************* * PK Utility Classes Source File * -* (C) 1999-2007 Jack Lloyd * +* (C) 1999-2008 Jack Lloyd * *************************************************/ #include <botan/pk_util.h> -#include <botan/libstate.h> namespace Botan { @@ -46,21 +45,4 @@ SecureVector<byte> EME::decode(const MemoryRegion<byte>& msg, return unpad(msg, msg.size(), key_bits); } -/************************************************* -* Default signature decoding * -*************************************************/ -bool EMSA::verify(const MemoryRegion<byte>& coded, - const MemoryRegion<byte>& raw, - u32bit key_bits) throw() - { - try { - return (coded == encoding_of(raw, key_bits, - global_state().prng_reference())); - } - catch(Invalid_Argument) - { - return false; - } - } - } |