From fe9aa5acece6c004f2c1c1aa4b23d7c44207672f Mon Sep 17 00:00:00 2001 From: lloyd Date: Thu, 4 Mar 2010 03:49:35 +0000 Subject: Add similar decoding constructors to the private keys --- checks/pk_bench.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'checks/pk_bench.cpp') diff --git a/checks/pk_bench.cpp b/checks/pk_bench.cpp index 322e643cc..4053316dc 100644 --- a/checks/pk_bench.cpp +++ b/checks/pk_bench.cpp @@ -479,7 +479,7 @@ void benchmark_dsa_nr(RandomNumberGenerator& rng, "dsa/botan/3072", NULL }; - const std::string algo_name = PRIV_KEY_TYPE().algo_name(); + std::string algo_name; for(size_t j = 0; domains[j]; j++) { @@ -499,6 +499,7 @@ void benchmark_dsa_nr(RandomNumberGenerator& rng, keygen_timer.start(); PRIV_KEY_TYPE key(rng, group); + algo_name = key.algo_name(); keygen_timer.stop(); std::auto_ptr sig(get_pk_signer(key, padding)); -- cgit v1.2.3