diff options
author | Jack Lloyd <[email protected]> | 2015-12-19 16:09:17 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2015-12-19 16:09:17 -0500 |
commit | 0fae1884079518e4f6d1c049cc7f341cd96c8a65 (patch) | |
tree | 41e3a8aea10b7381c0e2cfd4ee019745215876ac /src/lib/pubkey/mce/gf2m_rootfind_dcmp.cpp | |
parent | b3da432772628fdb3eed9cf5dabb54eda0097d2b (diff) |
Remove all remaining uses of throwing a std:: exception directly
See GH #340 and 6b9a3a5 for background
Diffstat (limited to 'src/lib/pubkey/mce/gf2m_rootfind_dcmp.cpp')
-rw-r--r-- | src/lib/pubkey/mce/gf2m_rootfind_dcmp.cpp | 3 |
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); |