diff options
author | lloyd <[email protected]> | 2014-12-09 02:54:54 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2014-12-09 02:54:54 +0000 |
commit | 718043cb931cb630b24771999f65aea7c1625c38 (patch) | |
tree | d227b129a95660c91da4751eec1961204e64fc3a /src/cmd | |
parent | 0bc9c6b170bd2c52a2fccfda12f767700bb40968 (diff) |
Implement a strength estimator for McEliece keys based on HyMES version
Diffstat (limited to 'src/cmd')
-rw-r--r-- | src/cmd/speed_pk.cpp | 5 |
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); |