aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_mceliece.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-09-24 13:04:08 -0400
committerJack Lloyd <[email protected]>2017-09-24 13:04:08 -0400
commit3785deadff522923299c34bcd2ba364c02abbf0c (patch)
treed8993e9f91de3353b0be96bd7a5d542c6ae8192d /src/tests/test_mceliece.cpp
parent8e70617d88b3f486d03f156f4800673bc4e14d06 (diff)
Further build/test fixes for restricted configurations
Diffstat (limited to 'src/tests/test_mceliece.cpp')
-rw-r--r--src/tests/test_mceliece.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/tests/test_mceliece.cpp b/src/tests/test_mceliece.cpp
index 7f27e844b..bcc467344 100644
--- a/src/tests/test_mceliece.cpp
+++ b/src/tests/test_mceliece.cpp
@@ -32,7 +32,7 @@ namespace {
#if defined(BOTAN_HAS_MCELIECE)
-#if defined(BOTAN_HAS_HMAC_DRBG)
+#if defined(BOTAN_HAS_HMAC_DRBG) && defined(BOTAN_HAS_SHA2_32) && defined(BOTAN_HASH_SHA2_64)
class McEliece_Keygen_Encrypt_Test final : public Text_Based_Test
{
public:
@@ -117,6 +117,9 @@ class McEliece_Keygen_Encrypt_Test final : public Text_Based_Test
BOTAN_REGISTER_TEST("mce_keygen", McEliece_Keygen_Encrypt_Test);
#endif
+
+#if defined(BOTAN_HAS_SHA2_32)
+
class McEliece_Tests final : public Test
{
public:
@@ -190,7 +193,9 @@ class McEliece_Tests final : public Test
results.push_back(result);
+#if defined(BOTAN_HAS_KDF2)
results.push_back(test_kem(sk, pk));
+#endif
#if defined(BOTAN_HAS_MCEIES)
results.push_back(test_mceies(sk, pk));
@@ -280,6 +285,8 @@ BOTAN_REGISTER_TEST("mceliece", McEliece_Tests);
#endif
+#endif
+
}
}