aboutsummaryrefslogtreecommitdiffstats
path: root/src/pubkey/nr/nr.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2012-05-18 18:34:40 +0000
committerlloyd <[email protected]>2012-05-18 18:34:40 +0000
commitd76700f01c7ecac5633edf75f8d7408b46c5dbac (patch)
treea1264f4238d58ca774812acbac8d4beffd49e449 /src/pubkey/nr/nr.cpp
parentab5c922f0e2635dc0e45fc757b27be9f28986acb (diff)
parente0070253386bfd39b2a782c66ccf0caf9ce87ca2 (diff)
propagate from branch 'net.randombit.botan' (head 6332543aa5a8a4cc13662008ff9ac0f0016d9a4d)
to branch 'net.randombit.botan.cxx11' (head 5517c9f8f6d1990f269afb94f569a97a80c5a5f4)
Diffstat (limited to 'src/pubkey/nr/nr.cpp')
-rw-r--r--src/pubkey/nr/nr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pubkey/nr/nr.cpp b/src/pubkey/nr/nr.cpp
index e1c5e51da..7490e1b64 100644
--- a/src/pubkey/nr/nr.cpp
+++ b/src/pubkey/nr/nr.cpp
@@ -125,7 +125,7 @@ NR_Verification_Operation::verify_mr(const byte msg[], size_t msg_len)
const BigInt& q = mod_q.get_modulus();
if(msg_len != 2*q.bytes())
- return false;
+ throw Invalid_Argument("NR verification: Invalid signature");
BigInt c(msg, q.bytes());
BigInt d(msg + q.bytes(), q.bytes());