Fix undesirable kyber dependencies when not building kyber

pull/5617/head
kaleb-himes 2022-09-21 09:58:38 -06:00
parent 2bf583aa57
commit d672f10f7e
2 changed files with 4 additions and 1 deletions

View File

@ -24,7 +24,6 @@
#endif
#include <wolfssl/wolfcrypt/settings.h>
#include <wolfssl/wolfcrypt/ext_kyber.h>
#include <wolfssl/wolfcrypt/error-crypt.h>
#if defined(WOLFSSL_KYBER_90S) && defined(HAVE_PQM4)
@ -32,6 +31,7 @@
#endif
#ifdef WOLFSSL_HAVE_KYBER
#include <wolfssl/wolfcrypt/ext_kyber.h>
#ifdef NO_INLINE
#include <wolfssl/wolfcrypt/misc.h>

View File

@ -22,6 +22,8 @@
#ifndef EXT_KYBER_H
#define EXT_KYBER_H
#ifdef WOLFSSL_HAVE_KYBER
#include <wolfssl/wolfcrypt/kyber.h>
#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 */