diff options
Diffstat (limited to 'src/benchmark/benchmark.cpp')
-rw-r--r-- | src/benchmark/benchmark.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/benchmark/benchmark.cpp b/src/benchmark/benchmark.cpp index d30e831b9..3bbc1f883 100644 --- a/src/benchmark/benchmark.cpp +++ b/src/benchmark/benchmark.cpp @@ -57,8 +57,7 @@ bench_block_cipher(BlockCipher* block_cipher, while(nanoseconds_used < nanoseconds_max) { - for(u32bit i = 0; i != in_blocks; ++i) - block_cipher->encrypt(buf + block_cipher->BLOCK_SIZE * i); + block_cipher->encrypt_n(buf, buf, in_blocks); ++reps; nanoseconds_used = timer.clock() - start; @@ -140,7 +139,7 @@ algorithm_benchmark(const std::string& name, { const std::string provider = providers[i]; - std::pair<u64bit, u64bit> results = std::make_pair(0, 0); + std::pair<u64bit, u64bit> results(0, 0); if(const BlockCipher* proto = af.prototype_block_cipher(name, provider)) |