aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/math
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-06-14 21:21:20 -0400
committerJack Lloyd <[email protected]>2018-06-14 21:21:20 -0400
commitc86fff12151a640ffc249b2ef28c338dd1329d31 (patch)
tree498994fa32706bcb52513ef9662ce0ecc7a74961 /src/lib/math
parent48f44e423701bcaa5dbdf825c825e3bf53edfaa2 (diff)
Remove CT annotations from Montgomery reduction
The poisons don't stack so the unpoison hid conditional jumps we want to find.
Diffstat (limited to 'src/lib/math')
-rw-r--r--src/lib/math/mp/mp_monty.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/lib/math/mp/mp_monty.cpp b/src/lib/math/mp/mp_monty.cpp
index cae113df0..e5dda705c 100644
--- a/src/lib/math/mp/mp_monty.cpp
+++ b/src/lib/math/mp/mp_monty.cpp
@@ -116,10 +116,6 @@ void bigint_monty_redc(word z[],
BOTAN_ARG_CHECK(ws_size >= z_size, "workspace too small");
- CT::poison(z, z_size);
- CT::poison(p, p_size);
- CT::poison(ws, 2*(p_size+1));
-
if(p_size == 4)
bigint_monty_redc_4(z, p, p_dash, ws);
else if(p_size == 6)
@@ -134,10 +130,6 @@ void bigint_monty_redc(word z[],
bigint_monty_redc_32(z, p, p_dash, ws);
else
bigint_monty_redc_generic(z, z_size, p, p_size, p_dash, ws);
-
- CT::unpoison(z, z_size);
- CT::unpoison(p, p_size);
- CT::unpoison(ws, 2*(p_size+1));
}
}