aboutsummaryrefslogtreecommitdiffstats
path: root/src/emsa1.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2006-09-30 06:13:18 +0000
committerlloyd <[email protected]>2006-09-30 06:13:18 +0000
commite52d871393f180042822950966597d160b9adf70 (patch)
treef9ae4e2b368eb7390da2fffc6aefbc4de0a6ec4d /src/emsa1.cpp
parent2d823dfaee1f3fe329f5b2eaf79eb3d9c27943a9 (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.cpp2
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;