aboutsummaryrefslogtreecommitdiffstats
path: root/src/cli
diff options
context:
space:
mode:
authorJose Pereira <[email protected]>2018-09-06 23:16:38 -0700
committerJose Pereira <[email protected]>2018-09-06 23:19:32 -0700
commitd3b55672f63621c82d5a9d5b7be2e6af319006d6 (patch)
tree05024cf6dbd25d49f313fa925402a880b49f73ee /src/cli
parent992d2803181b34415c25e013a40ab935eb71a9e3 (diff)
Fix cipher mode speed benchmark ignoring provider argument
Diffstat (limited to 'src/cli')
-rw-r--r--src/cli/speed.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cli/speed.cpp b/src/cli/speed.cpp
index dfe26c8d6..f42a9fe1f 100644
--- a/src/cli/speed.cpp
+++ b/src/cli/speed.cpp
@@ -807,9 +807,9 @@ class Speed final : public Command
}
#endif
#if defined(BOTAN_HAS_CIPHER_MODES)
- else if(auto enc = Botan::Cipher_Mode::create(algo, Botan::ENCRYPTION))
+ else if(auto enc = Botan::Cipher_Mode::create(algo, Botan::ENCRYPTION, provider))
{
- auto dec = Botan::Cipher_Mode::create_or_throw(algo, Botan::DECRYPTION);
+ auto dec = Botan::Cipher_Mode::create_or_throw(algo, Botan::DECRYPTION, provider);
bench_cipher_mode(*enc, *dec, msec, buf_sizes);
}
#endif