diff options
author | Jack Lloyd <[email protected]> | 2017-09-29 17:00:12 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-09-29 17:12:39 -0400 |
commit | d088704946ca6deedbb2a13f9ae517d02cb96f78 (patch) | |
tree | bb1ba90c0137c22e809bcc07689735e5846622a0 | |
parent | 1b8083e2c8bb287e9c25b24cd04b7d796cf34e5d (diff) |
Fix test error if mceies disabled
[ci skip]
-rw-r--r-- | src/tests/test_ffi.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/tests/test_ffi.cpp b/src/tests/test_ffi.cpp index ef88a7452..224d634b4 100644 --- a/src/tests/test_ffi.cpp +++ b/src/tests/test_ffi.cpp @@ -1676,9 +1676,10 @@ class FFI_Unit_Tests final : public Test result.test_eq("algo name", std::string(namebuf), "McEliece"); } - const uint64_t zero_seq = 0; - uint8_t ad[8]; - Botan::store_be(zero_seq, ad); + // TODO test KEM + +#if defined(BOTAN_HAS_MCEIES) + const uint8_t ad[8] = { 0xAD, 0xAD, 0xAD, 0xAD, 0xBE, 0xEE, 0xEE, 0xFF }; const size_t ad_len = sizeof(ad); const Botan::secure_vector<uint8_t> plaintext = Test::rng().random_vec(Test::rng().next_byte()); @@ -1702,6 +1703,7 @@ class FFI_Unit_Tests final : public Test result.test_eq("MCIES plaintext", decrypted, plaintext); } +#endif TEST_FFI_OK(botan_pubkey_destroy, (pub)); TEST_FFI_OK(botan_privkey_destroy, (priv)); |