aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pubkey/mce/gf2m_rootfind_dcmp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/pubkey/mce/gf2m_rootfind_dcmp.cpp')
-rw-r--r--src/lib/pubkey/mce/gf2m_rootfind_dcmp.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/pubkey/mce/gf2m_rootfind_dcmp.cpp b/src/lib/pubkey/mce/gf2m_rootfind_dcmp.cpp
index d23d05172..3a377a447 100644
--- a/src/lib/pubkey/mce/gf2m_rootfind_dcmp.cpp
+++ b/src/lib/pubkey/mce/gf2m_rootfind_dcmp.cpp
@@ -9,6 +9,7 @@
#include <botan/polyn_gf2m.h>
#include <botan/internal/bit_ops.h>
#include <botan/internal/code_based_util.h>
+#include <botan/exceptn.h>
namespace Botan {
@@ -102,7 +103,7 @@ gf2m_decomp_rootfind_state::gf2m_decomp_rootfind_state(const polyn_gf2m & polyn,
int deg_sigma = polyn.get_degree();
if(deg_sigma <= 3)
{
- throw std::exception();
+ throw Internal_Error("Unexpected degree in gf2m_decomp_rootfind_state");
}
this->m_j = 0;
coeff_3 = polyn.get_coef( 3);