diff options
author | Jack Lloyd <[email protected]> | 2018-05-13 12:49:40 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-05-13 12:49:40 -0400 |
commit | 1fcf8c6ba3f8912c9c6cba0555597ab0083eaaa2 (patch) | |
tree | 07199fd3b677dd02828f73fa1d2dcda272ee7a1f /src/lib/math/mp | |
parent | bef5303b3ec1a17bc79ccce0eecdca4874639b56 (diff) |
Add message to BOTAN_ARG_CHECK and use it more widely
Diffstat (limited to 'src/lib/math/mp')
-rw-r--r-- | src/lib/math/mp/mp_monty.cpp | 3 |
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); |