aboutsummaryrefslogtreecommitdiffstats
path: root/src/cmd
diff options
context:
space:
mode:
authorlloyd <[email protected]>2014-12-09 02:54:54 +0000
committerlloyd <[email protected]>2014-12-09 02:54:54 +0000
commit718043cb931cb630b24771999f65aea7c1625c38 (patch)
treed227b129a95660c91da4751eec1961204e64fc3a /src/cmd
parent0bc9c6b170bd2c52a2fccfda12f767700bb40968 (diff)
Implement a strength estimator for McEliece keys based on HyMES version
Diffstat (limited to 'src/cmd')
-rw-r--r--src/cmd/speed_pk.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/cmd/speed_pk.cpp b/src/cmd/speed_pk.cpp
index 141248d7d..6d20065cc 100644
--- a/src/cmd/speed_pk.cpp
+++ b/src/cmd/speed_pk.cpp
@@ -682,8 +682,6 @@ void benchmark_mce(RandomNumberGenerator& rng,
Benchmark_Report& report)
{
const std::vector<std::pair<size_t, size_t>> params = {
- { 256, 15 },
- { 512, 33 },
{ 1024, 35 },
{ 2048, 50 },
{ 2960, 56 },
@@ -727,7 +725,8 @@ void benchmark_mce(RandomNumberGenerator& rng,
std::ostringstream keysize_report;
keysize_report << "(size " << pub_key.x509_subject_public_key().size() << " pub "
- << priv_key.pkcs8_private_key().size() << " priv)";
+ << priv_key.pkcs8_private_key().size() << " priv "
+ << pub_key.estimated_strength() << " work factor)";
report.report(nm + " " + keysize_report.str(), keygen_timer);
report.report(nm, enc_timer);