mirror of https://github.com/wolfSSL/wolfssl.git
Fix undesirable kyber dependencies when not building kyber
parent
2bf583aa57
commit
d672f10f7e
|
@ -24,7 +24,6 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <wolfssl/wolfcrypt/settings.h>
|
#include <wolfssl/wolfcrypt/settings.h>
|
||||||
#include <wolfssl/wolfcrypt/ext_kyber.h>
|
|
||||||
#include <wolfssl/wolfcrypt/error-crypt.h>
|
#include <wolfssl/wolfcrypt/error-crypt.h>
|
||||||
|
|
||||||
#if defined(WOLFSSL_KYBER_90S) && defined(HAVE_PQM4)
|
#if defined(WOLFSSL_KYBER_90S) && defined(HAVE_PQM4)
|
||||||
|
@ -32,6 +31,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef WOLFSSL_HAVE_KYBER
|
#ifdef WOLFSSL_HAVE_KYBER
|
||||||
|
#include <wolfssl/wolfcrypt/ext_kyber.h>
|
||||||
|
|
||||||
#ifdef NO_INLINE
|
#ifdef NO_INLINE
|
||||||
#include <wolfssl/wolfcrypt/misc.h>
|
#include <wolfssl/wolfcrypt/misc.h>
|
||||||
|
|
|
@ -22,6 +22,8 @@
|
||||||
#ifndef EXT_KYBER_H
|
#ifndef EXT_KYBER_H
|
||||||
#define EXT_KYBER_H
|
#define EXT_KYBER_H
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef WOLFSSL_HAVE_KYBER
|
||||||
#include <wolfssl/wolfcrypt/kyber.h>
|
#include <wolfssl/wolfcrypt/kyber.h>
|
||||||
|
|
||||||
#if !defined(HAVE_LIBOQS) && !defined(HAVE_PQM4)
|
#if !defined(HAVE_LIBOQS) && !defined(HAVE_PQM4)
|
||||||
|
@ -59,4 +61,5 @@ struct KyberKey {
|
||||||
byte pub[EXT_KYBER_MAX_PUB_SZ];
|
byte pub[EXT_KYBER_MAX_PUB_SZ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#endif /* WOLFSSL_HAVE_KYBER */
|
||||||
#endif /* EXT_KYBER_H */
|
#endif /* EXT_KYBER_H */
|
||||||
|
|
Loading…
Reference in New Issue