aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pubkey/mceies
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/pubkey/mceies')
-rw-r--r--src/lib/pubkey/mceies/mceies.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/pubkey/mceies/mceies.cpp b/src/lib/pubkey/mceies/mceies.cpp
index d4d956a54..301c5dda4 100644
--- a/src/lib/pubkey/mceies/mceies.cpp
+++ b/src/lib/pubkey/mceies/mceies.cpp
@@ -99,6 +99,10 @@ mceies_decrypt(const McEliece_PrivateKey& privkey,
aead->finish(pt, 0);
return pt;
}
+ catch(Integrity_Failure)
+ {
+ throw;
+ }
catch(std::exception& e)
{
throw std::runtime_error("mce_decrypt failed: " + std::string(e.what()));