diff options
author | lloyd <[email protected]> | 2008-06-10 19:10:34 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-06-10 19:10:34 +0000 |
commit | b36db2d74992f2ea80329378c32a6321d6a60b26 (patch) | |
tree | 426add866dd75f8b3e73e0bde0ae5d936c305662 /checks/pk_bench.cpp | |
parent | 54fecdc60438d15f970055bb691e18c6469e1785 (diff) |
Change PK_Signer::signature to take a RandomNumberGenerator reference
instead of always using the global PRNG.
Diffstat (limited to 'checks/pk_bench.cpp')
-rw-r--r-- | checks/pk_bench.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/checks/pk_bench.cpp b/checks/pk_bench.cpp index c34827258..e6ab90153 100644 --- a/checks/pk_bench.cpp +++ b/checks/pk_bench.cpp @@ -295,7 +295,7 @@ void bench_sig(PK_Signer* sig, const std::string& algo_name, global_state().randomize(msg, MSG_SIZE); u64bit start = get_clock(); sig->update(msg, MSG_SIZE); - sig->signature(); + sig->signature(global_state().prng_reference()); clocks_used += get_clock() - start; } @@ -313,7 +313,7 @@ void bench_ver(PK_Signer* sig, PK_Verifier* ver, global_state().randomize(msg, MSG_SIZE); sig->update(msg, MSG_SIZE); - SecureVector<byte> signature = sig->signature(); + SecureVector<byte> signature = sig->signature(global_state().prng_reference()); u32bit runs = 0; u64bit clocks_used = 0; @@ -325,7 +325,7 @@ void bench_ver(PK_Signer* sig, PK_Verifier* ver, { global_state().randomize(msg, MSG_SIZE); sig->update(msg, MSG_SIZE); - signature = sig->signature(); + signature = sig->signature(global_state().prng_reference()); } runs++; |