aboutsummaryrefslogtreecommitdiffstats
path: root/src/benchmark/benchmark.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/benchmark/benchmark.cpp')
-rw-r--r--src/benchmark/benchmark.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/benchmark/benchmark.cpp b/src/benchmark/benchmark.cpp
index ff81d9935..cb5d8bb41 100644
--- a/src/benchmark/benchmark.cpp
+++ b/src/benchmark/benchmark.cpp
@@ -21,9 +21,9 @@ namespace {
typedef std::chrono::high_resolution_clock benchmark_clock;
/**
-* Benchmark BufferedComputation (hash or MAC)
+* Benchmark Buffered_Computation (hash or MAC)
*/
-std::pair<u64bit, u64bit> bench_buf_comp(BufferedComputation* buf_comp,
+std::pair<u64bit, u64bit> bench_buf_comp(Buffered_Computation* buf_comp,
u64bit nanoseconds_max,
const byte buf[], size_t buf_len)
{
@@ -62,7 +62,7 @@ bench_block_cipher(BlockCipher* block_cipher,
std::chrono::nanoseconds max_time(nanoseconds_max);
std::chrono::nanoseconds time_used(0);
- block_cipher->set_key(buf, block_cipher->MAXIMUM_KEYLENGTH);
+ block_cipher->set_key(buf, block_cipher->maximum_keylength());
while(time_used < max_time)
{
@@ -90,7 +90,7 @@ bench_stream_cipher(StreamCipher* stream_cipher,
{
u64bit reps = 0;
- stream_cipher->set_key(buf, stream_cipher->MAXIMUM_KEYLENGTH);
+ stream_cipher->set_key(buf, stream_cipher->maximum_keylength());
std::chrono::nanoseconds max_time(nanoseconds_max);
std::chrono::nanoseconds time_used(0);
@@ -129,7 +129,7 @@ bench_mac(MessageAuthenticationCode* mac,
u64bit nanoseconds_max,
const byte buf[], size_t buf_len)
{
- mac->set_key(buf, mac->MAXIMUM_KEYLENGTH);
+ mac->set_key(buf, mac->maximum_keylength());
return bench_buf_comp(mac, nanoseconds_max, buf, buf_len);
}