diff options
Diffstat (limited to 'src/lib/benchmark/benchmark.cpp')
-rw-r--r-- | src/lib/benchmark/benchmark.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/benchmark/benchmark.cpp b/src/lib/benchmark/benchmark.cpp index 396670168..df15ffa6f 100644 --- a/src/lib/benchmark/benchmark.cpp +++ b/src/lib/benchmark/benchmark.cpp @@ -103,7 +103,7 @@ time_algorithm_ops(const std::string& name, if(enc && dec) { - const SymmetricKey key(rng, enc->maximum_keylength()); + const SymmetricKey key(rng, enc->key_spec().maximum_keylength()); return std::map<std::string, double>({ { "key schedule", time_op(runtime / 4, [&]() { enc->set_key(key); dec->set_key(key); }) / 2 }, |