diff --git a/wolfcrypt/src/ext_kyber.c b/wolfcrypt/src/ext_kyber.c index ceedffdbe..61a771329 100644 --- a/wolfcrypt/src/ext_kyber.c +++ b/wolfcrypt/src/ext_kyber.c @@ -24,7 +24,6 @@ #endif #include -#include #include #if defined(WOLFSSL_KYBER_90S) && defined(HAVE_PQM4) @@ -32,6 +31,7 @@ #endif #ifdef WOLFSSL_HAVE_KYBER +#include #ifdef NO_INLINE #include diff --git a/wolfssl/wolfcrypt/ext_kyber.h b/wolfssl/wolfcrypt/ext_kyber.h index d1a400ce6..3e66d8aaf 100644 --- a/wolfssl/wolfcrypt/ext_kyber.h +++ b/wolfssl/wolfcrypt/ext_kyber.h @@ -22,6 +22,8 @@ #ifndef EXT_KYBER_H #define EXT_KYBER_H + +#ifdef WOLFSSL_HAVE_KYBER #include #if !defined(HAVE_LIBOQS) && !defined(HAVE_PQM4) @@ -59,4 +61,5 @@ struct KyberKey { byte pub[EXT_KYBER_MAX_PUB_SZ]; }; +#endif /* WOLFSSL_HAVE_KYBER */ #endif /* EXT_KYBER_H */