aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_ffi.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2020-11-06 09:53:39 -0500
committerJack Lloyd <[email protected]>2020-11-06 09:53:39 -0500
commit7c27982e27b953682554de3c4b22843e0e7461e7 (patch)
tree74480b4685262e52fda467c64cedf9d2031b0c6e /src/tests/test_ffi.cpp
parent332c2c088465f3e0e5fe498ba08dcc31a3e9cbd8 (diff)
parent76c1b92f320cee8a13c2071e3325d10bb1d7190d (diff)
Merge GH #2434 Remove deprecated algorithms
Diffstat (limited to 'src/tests/test_ffi.cpp')
-rw-r--r--src/tests/test_ffi.cpp29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/tests/test_ffi.cpp b/src/tests/test_ffi.cpp
index eef8a39d7..60f307cd1 100644
--- a/src/tests/test_ffi.cpp
+++ b/src/tests/test_ffi.cpp
@@ -2418,35 +2418,6 @@ class FFI_Unit_Tests final : public Test
// 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());
- size_t plaintext_len = plaintext.size();
- size_t ciphertext_len = 0;
-
- // first calculate ciphertext length
- TEST_FFI_RC(BOTAN_FFI_ERROR_INSUFFICIENT_BUFFER_SPACE, botan_mceies_encrypt, (pub, rng, "AES-256/OCB", plaintext.data(),
- plaintext.size(), ad, ad_len, nullptr, &ciphertext_len));
- std::vector<uint8_t> ciphertext(ciphertext_len);
-
- // now encrypt
- if(TEST_FFI_OK(botan_mceies_encrypt, (pub, rng, "AES-256/OCB", plaintext.data(), plaintext.size(), ad, ad_len,
- ciphertext.data(), &ciphertext_len)))
- {
- std::vector<uint8_t> decrypted(ciphertext.size());
- size_t decrypted_len = plaintext_len;
-
- TEST_FFI_OK(botan_mceies_decrypt, (priv, "AES-256/OCB", ciphertext.data(), ciphertext.size(), ad, ad_len,
- decrypted.data(), &decrypted_len));
-
- decrypted.resize(decrypted_len);
-
- result.test_eq("MCIES plaintext", decrypted, plaintext);
- }
-#endif
-
TEST_FFI_OK(botan_pubkey_destroy, (pub));
TEST_FFI_OK(botan_privkey_destroy, (priv));
}