diff options
author | lloyd <[email protected]> | 2006-09-30 06:13:18 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2006-09-30 06:13:18 +0000 |
commit | e52d871393f180042822950966597d160b9adf70 (patch) | |
tree | f9ae4e2b368eb7390da2fffc6aefbc4de0a6ec4d /src/emsa1.cpp | |
parent | 2d823dfaee1f3fe329f5b2eaf79eb3d9c27943a9 (diff) |
Throw Encoding_Error instead of Invalid_Argument if a signature encoding
operation fails for some reason (typically parameters that the scheme can't
handle).
Diffstat (limited to 'src/emsa1.cpp')
-rw-r--r-- | src/emsa1.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emsa1.cpp b/src/emsa1.cpp index 047d6bdbf..e4704ee3d 100644 --- a/src/emsa1.cpp +++ b/src/emsa1.cpp @@ -31,7 +31,7 @@ SecureVector<byte> EMSA1::encoding_of(const MemoryRegion<byte>& msg, u32bit output_bits) { if(msg.size() != hash->OUTPUT_LENGTH) - throw Invalid_Argument("EMSA1::encoding_of: Invalid size for input"); + throw Encoding_Error("EMSA1::encoding_of: Invalid size for input"); if(8*msg.size() <= output_bits) return msg; |