diff options
author | Jack Lloyd <[email protected]> | 2017-09-24 11:09:44 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-09-24 11:09:44 -0400 |
commit | ef9d827383aef0cdd3162c42b9b87b2663911705 (patch) | |
tree | f9a4c552278eaff703a97e969a053eb2d8f0025a /src/tests | |
parent | 9f18cc9132cb074299994e85e7b9943283f78576 (diff) |
Test fixes
Diffstat (limited to 'src/tests')
-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)); |