diff options
Diffstat (limited to 'src/lib/math')
-rw-r--r-- | src/lib/math/ec_gfp/curve_gfp.cpp | 3 | ||||
-rw-r--r-- | src/lib/math/numbertheory/ressol.cpp | 2 |
2 files changed, 1 insertions, 4 deletions
diff --git a/src/lib/math/ec_gfp/curve_gfp.cpp b/src/lib/math/ec_gfp/curve_gfp.cpp index 52e5b0b56..9bf2191c6 100644 --- a/src/lib/math/ec_gfp/curve_gfp.cpp +++ b/src/lib/math/ec_gfp/curve_gfp.cpp @@ -83,9 +83,6 @@ void CurveGFp_Montgomery::curve_mul(BigInt& z, const BigInt& x, const BigInt& y, const size_t x_sw = x.sig_words(); const size_t y_sw = y.sig_words(); - BOTAN_ASSERT(x_sw <= m_p_words, "Input in range"); - BOTAN_ASSERT(y_sw <= m_p_words, "Input in range"); - const size_t output_size = 2*m_p_words + 1; ws.resize(2*(m_p_words+2)); diff --git a/src/lib/math/numbertheory/ressol.cpp b/src/lib/math/numbertheory/ressol.cpp index 875d054c3..127dc899e 100644 --- a/src/lib/math/numbertheory/ressol.cpp +++ b/src/lib/math/numbertheory/ressol.cpp @@ -66,7 +66,7 @@ BigInt ressol(const BigInt& a, const BigInt& p) q = mod_p.square(q); ++i; - if(s >= i) + if(i > s) { return -BigInt(1); } |