aboutsummaryrefslogtreecommitdiffstats
path: root/checks/ecdsa.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'checks/ecdsa.cpp')
-rw-r--r--checks/ecdsa.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/checks/ecdsa.cpp b/checks/ecdsa.cpp
index 532a1c546..c86668baf 100644
--- a/checks/ecdsa.cpp
+++ b/checks/ecdsa.cpp
@@ -112,16 +112,8 @@ void test_hash_larger_than_n(RandomNumberGenerator& rng)
// we make sure it doesn't fail because of the invalid signature,
// but because of the Encoding_Error
- bool ver_exc = false;
- try
- {
- pk_verifier->verify_message(message, signature);
- }
- catch(Encoding_Error e)
- {
- ver_exc = true;
- }
- CHECK(ver_exc);
+ if(pk_verifier->verify_message(message, signature))
+ std::cout << "Corrupt ECDSA signature verified, should not have\n";
}
/**