diff options
Diffstat (limited to 'src/tests/test_mceliece.cpp')
-rw-r--r-- | src/tests/test_mceliece.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/test_mceliece.cpp b/src/tests/test_mceliece.cpp index a2cf5bf8f..88379f2ea 100644 --- a/src/tests/test_mceliece.cpp +++ b/src/tests/test_mceliece.cpp @@ -103,7 +103,7 @@ class McEliece_Tests : public Test { std::unique_ptr<Botan::HashFunction> hash(Botan::HashFunction::create(hash_algo)); if(!hash) - throw std::runtime_error("Hash " + hash_algo + " not available"); + throw Test_Error("Hash " + hash_algo + " not available"); hash->update(key.pkcs8_private_key()); return Botan::hex_encode(hash->final()); @@ -113,7 +113,7 @@ class McEliece_Tests : public Test { std::unique_ptr<Botan::HashFunction> hash(Botan::HashFunction::create(hash_algo)); if(!hash) - throw std::runtime_error("Hash " + hash_algo + " not available"); + throw Test_Error("Hash " + hash_algo + " not available"); hash->update(key.x509_subject_public_key()); return Botan::hex_encode(hash->final()); |