diff options
author | lloyd <[email protected]> | 2008-06-20 11:39:33 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-06-20 11:39:33 +0000 |
commit | 770a9850f1a7c6c65b0316503b99798a6ff910dd (patch) | |
tree | 8e10281d15a1095b2151a1d1482898d75251589f /checks/pk_bench.cpp | |
parent | 8f32a90b0aa6ab873c1d5337947e3642c640e3a4 (diff) |
Consolidate the two DH_PrivateKey constructors into a single one taking
a RNG reference, a group, and an (optional) private key. The public key
is now always rederived from the private.
Diffstat (limited to 'checks/pk_bench.cpp')
-rw-r--r-- | checks/pk_bench.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/checks/pk_bench.cpp b/checks/pk_bench.cpp index d00130ebd..8daa1fe91 100644 --- a/checks/pk_bench.cpp +++ b/checks/pk_bench.cpp @@ -108,8 +108,8 @@ void bench_pk(const std::string& algo, bool html, double seconds) { const std::string len_str = to_string(keylen[j]); - DH_PrivateKey key("modp/ietf/" + len_str, - global_state().prng_reference()); + DH_PrivateKey key(global_state().prng_reference(), + "modp/ietf/" + len_str); bench_kas(get_pk_kas(key, "Raw"), "DH-" + len_str, seconds, html); } |