aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_rsa.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-06-11 16:59:55 -0400
committerJack Lloyd <[email protected]>2018-06-11 18:12:19 -0400
commit2887819c4c66be71d0d8c079655642f71c2338ff (patch)
tree0f40f894e88560de8e0e07aee8af96dd16692634 /src/tests/test_rsa.cpp
parent2f7cc125bee0f9ca940c09044672b267acb91d08 (diff)
Unroll bigint_monty_redc for various sizes
Speedup of 10 to 30% depending on algo
Diffstat (limited to 'src/tests/test_rsa.cpp')
-rw-r--r--src/tests/test_rsa.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/test_rsa.cpp b/src/tests/test_rsa.cpp
index 32e4ab9e6..3688367d2 100644
--- a/src/tests/test_rsa.cpp
+++ b/src/tests/test_rsa.cpp
@@ -244,7 +244,7 @@ class RSA_Blinding_Tests final : public Test
for(size_t i = 1; i <= BOTAN_BLINDING_REINIT_INTERVAL * 6; ++i)
{
std::vector<uint8_t> input(16);
- input[input.size() - 1] = static_cast<uint8_t>(i);
+ input[input.size() - 1] = static_cast<uint8_t>(i | 1);
signer.update(input);