diff options
Diffstat (limited to 'src/cli/speed.cpp')
-rw-r--r-- | src/cli/speed.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cli/speed.cpp b/src/cli/speed.cpp index 00f8086e3..afe75decc 100644 --- a/src/cli/speed.cpp +++ b/src/cli/speed.cpp @@ -783,9 +783,9 @@ class Speed final : public Command } #endif #if defined(BOTAN_HAS_CIPHER_MODES) - else if(auto enc = Botan::get_cipher_mode(algo, Botan::ENCRYPTION)) + else if(auto enc = Botan::Cipher_Mode::create(algo, Botan::ENCRYPTION)) { - auto dec = Botan::get_cipher_mode(algo, Botan::DECRYPTION); + auto dec = Botan::Cipher_Mode::create_or_throw(algo, Botan::DECRYPTION); bench_cipher_mode(*enc, *dec, msec, buf_sizes); } #endif |