diff options
Diffstat (limited to 'src/scripts/monty.py')
-rwxr-xr-x | src/scripts/monty.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/scripts/monty.py b/src/scripts/monty.py index f253da3f6..e08b7203c 100755 --- a/src/scripts/monty.py +++ b/src/scripts/monty.py @@ -42,7 +42,9 @@ def monty_redc_code(n): lines.append("ws[%d] = w0;" % (n)) lines.append("ws[%d] = w1;" % (n+1)) - if n < 16: + sub3_bound = 0 + + if n >= sub3_bound: lines.append("word borrow = 0;") for i in range(n): lines.append("ws[%d] = word_sub(ws[%d], p[%d], &borrow);" % (n + 1 + i, i, i)) @@ -72,9 +74,7 @@ def main(args = None): * Botan is released under the Simplified BSD License (see license.txt) */ -#include <botan/internal/mp_monty.h> #include <botan/internal/mp_core.h> -#include <botan/internal/mp_asmi.h> #include <botan/internal/ct_utils.h> namespace Botan { |