aboutsummaryrefslogtreecommitdiffstats
path: root/src/cli
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-05-08 19:28:43 -0400
committerJack Lloyd <[email protected]>2018-05-08 19:35:53 -0400
commitc20718f0332db1ef5f8f869f41204c5422a9fcbf (patch)
tree4b036db6e3293822897eb3b6543e2559357535b0 /src/cli
parentcc2b24f85695653a3a6701339ffc57e76b2f1c60 (diff)
Add 24-word wide Comba multiply/square
Improves performance on "odd" sized DH/RSA (eg 1536, 3072, 6144) where otherwise the Karatsuba operation bottoms out with 24-word operands which ended up in the basecase multiply.
Diffstat (limited to 'src/cli')
-rw-r--r--src/cli/speed.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cli/speed.cpp b/src/cli/speed.cpp
index 526244c86..ecd810ba2 100644
--- a/src/cli/speed.cpp
+++ b/src/cli/speed.cpp
@@ -1987,7 +1987,7 @@ class Speed final : public Command
void bench_dh(const std::string& provider,
std::chrono::milliseconds msec)
{
- for(size_t bits : { 1024, 2048, 3072, 4096, 6144, 8192 })
+ for(size_t bits : { 1024, 1536, 2048, 3072, 4096, 6144, 8192 })
{
bench_pk_ka("DH",
"DH-" + std::to_string(bits),