diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/tests/test_filters.cpp | 2 | ||||
-rw-r--r-- | src/tests/test_package_transform.cpp | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/tests/test_filters.cpp b/src/tests/test_filters.cpp index 2b8c9b012..88668f625 100644 --- a/src/tests/test_filters.cpp +++ b/src/tests/test_filters.cpp @@ -555,7 +555,7 @@ class Filter_Tests final : public Test { Test::Result result("Pipe CTR"); -#if defined(BOTAN_HAS_CTR_BE) +#if defined(BOTAN_HAS_CTR_BE) && defined(BOTAN_HAS_AES) Botan::Keyed_Filter* aes = nullptr; const Botan::SymmetricKey some_other_key("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFE"); const Botan::SymmetricKey key("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"); diff --git a/src/tests/test_package_transform.cpp b/src/tests/test_package_transform.cpp index 9fb63c7d8..f09251e1d 100644 --- a/src/tests/test_package_transform.cpp +++ b/src/tests/test_package_transform.cpp @@ -25,6 +25,9 @@ class Package_Transform_Tests final : public Test std::unique_ptr<Botan::BlockCipher> cipher(Botan::BlockCipher::create("AES-128")); + if(!cipher) + return {result}; + for(size_t input_len = 2; input_len != 256; ++input_len) { std::vector<uint8_t> input = unlock(Test::rng().random_vec(input_len)); |