aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_block.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/test_block.cpp')
-rw-r--r--src/tests/test_block.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/tests/test_block.cpp b/src/tests/test_block.cpp
index 509cf1c0c..32e175899 100644
--- a/src/tests/test_block.cpp
+++ b/src/tests/test_block.cpp
@@ -7,7 +7,6 @@
#include "tests.h"
#include <botan/block_cipher.h>
-#include <botan/lookup.h>
#include <botan/hex.h>
#include <iostream>
#include <fstream>
@@ -25,7 +24,7 @@ size_t block_test(const std::string& algo,
const secure_vector<byte> pt = hex_decode_locked(in_hex);
const secure_vector<byte> ct = hex_decode_locked(out_hex);
- const std::vector<std::string> providers = get_block_cipher_providers(algo);
+ const std::vector<std::string> providers = BlockCipher::providers(algo);
size_t fails = 0;
if(providers.empty())
@@ -33,7 +32,7 @@ size_t block_test(const std::string& algo,
for(auto provider: providers)
{
- std::unique_ptr<BlockCipher> cipher(get_block_cipher(algo, provider));
+ std::unique_ptr<BlockCipher> cipher(BlockCipher::create(algo, provider));
if(!cipher)
{