aboutsummaryrefslogtreecommitdiffstats
path: root/checks
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-03-13 08:20:28 +0000
committerlloyd <[email protected]>2010-03-13 08:20:28 +0000
commitd9c2b170d59f7d7a918580bc55f405b4c1bc83dd (patch)
treef963045bbf5847bb2a656102234a1c49aa87b492 /checks
parentd53a844e81e6785d3e76b33b9a9e95a98abaad01 (diff)
Add 192 and 256 bit groups to the ECDSA benchmark lineup
Diffstat (limited to 'checks')
-rw-r--r--checks/pk_bench.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/checks/pk_bench.cpp b/checks/pk_bench.cpp
index bcb79af46..4acc2c5fd 100644
--- a/checks/pk_bench.cpp
+++ b/checks/pk_bench.cpp
@@ -296,7 +296,9 @@ void benchmark_ecdsa(RandomNumberGenerator& rng,
const char* domains[] = { "1.3.132.0.6", // secp112r1
"1.3.132.0.28", // secp128r1
"1.3.132.0.30", // secp160r2
+ "1.2.840.10045.3.1.1", // secp192r1
"1.3.132.0.33", // secp224r1
+ "1.2.840.10045.3.1.7", // secp256r1
"1.3.132.0.34", // secp384r1
"1.3.132.0.35", // secp512r1
NULL };
@@ -310,7 +312,7 @@ void benchmark_ecdsa(RandomNumberGenerator& rng,
u32bit hashbits = pbits;
- if(hashbits < 160)
+ if(hashbits <= 192)
hashbits = 160;
if(hashbits == 521)
hashbits = 512;