aboutsummaryrefslogtreecommitdiffstats
path: root/checks
diff options
context:
space:
mode:
authorlloyd <[email protected]>2007-10-19 18:15:34 +0000
committerlloyd <[email protected]>2007-10-19 18:15:34 +0000
commitb45c43ec532a5322fbdb5df6f12818ad58017a21 (patch)
tree241f353eb04c3530353e1140459e776bfad87389 /checks
parent807b84081f91f1f0cd5255198ce31745d410c28c (diff)
Wrap lines in pk_bench and passhash to keep them under 80 columns.
Diffstat (limited to 'checks')
-rw-r--r--checks/pk_bench.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/checks/pk_bench.cpp b/checks/pk_bench.cpp
index 097f4e326..f829c05e8 100644
--- a/checks/pk_bench.cpp
+++ b/checks/pk_bench.cpp
@@ -161,7 +161,8 @@ void bench_pk(const std::string& algo, bool html, double seconds)
const std::string len_str = to_string(keylen[j]);
const std::string file = "checks/keys/rw" + len_str + ".pem";
- RW_PrivateKey* key = dynamic_cast<RW_PrivateKey*>(PKCS8::load_key(file));
+ RW_PrivateKey* key =
+ dynamic_cast<RW_PrivateKey*>(PKCS8::load_key(file));
bench_ver(get_pk_signer(*key, "EMSA2(SHA-1)"),
get_pk_verifier(*key, "EMSA2(SHA-1)"),
@@ -201,9 +202,9 @@ void print_result(bool html, u32bit runs, u64bit clocks_used,
std::cout.precision(2);
if(PRINT_MS_PER_OP)
- std::cout << mseconds_per_run << " ms / " << op << std::endl;
+ std::cout << mseconds_per_run << " ms / " << op << "\n";
else
- std::cout << runs_per_sec << " ops / second (" << op << ")" << std::endl;
+ std::cout << runs_per_sec << " ops / second (" << op << ")\n";
}
}