aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/math/mp/mp_monty.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/math/mp/mp_monty.cpp')
-rw-r--r--src/lib/math/mp/mp_monty.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/math/mp/mp_monty.cpp b/src/lib/math/mp/mp_monty.cpp
index 5a28526ff..3231c610b 100644
--- a/src/lib/math/mp/mp_monty.cpp
+++ b/src/lib/math/mp/mp_monty.cpp
@@ -25,8 +25,7 @@ void bigint_monty_redc(word z[],
{
const size_t z_size = 2*(p_size+1);
- if(ws_size < z_size)
- throw Invalid_Argument("bigint_monty_redc workspace too small");
+ BOTAN_ARG_CHECK(ws_size >= z_size, "workspace too small");
CT::poison(z, z_size);
CT::poison(p, p_size);