mirror of https://github.com/wolfSSL/wolfssl.git
Fixes for building wolfBoot sources for PQ LMS/XMSS.
* Don't throw `#error "This code requires libxmss"`, just gate ext_xmss on HAVE_LIBXMSS. Same for LMS.pull/7868/head
parent
7dbf2a06dd
commit
01eaa56290
|
@ -27,7 +27,8 @@
|
|||
#include <wolfssl/wolfcrypt/error-crypt.h>
|
||||
#include <wolfssl/wolfcrypt/logging.h>
|
||||
|
||||
#ifdef WOLFSSL_HAVE_LMS
|
||||
#if defined(WOLFSSL_HAVE_LMS) && defined(HAVE_LIBLMS)
|
||||
|
||||
#include <wolfssl/wolfcrypt/ext_lms.h>
|
||||
|
||||
#ifdef NO_INLINE
|
||||
|
@ -1048,4 +1049,4 @@ int wc_LmsKey_Verify(LmsKey * key, const byte * sig, word32 sigSz,
|
|||
return 0;
|
||||
}
|
||||
|
||||
#endif /* WOLFSSL_HAVE_LMS */
|
||||
#endif /* WOLFSSL_HAVE_LMS && HAVE_LIBLMS */
|
||||
|
|
|
@ -28,7 +28,8 @@
|
|||
#include <wolfssl/wolfcrypt/logging.h>
|
||||
#include <wolfssl/wolfcrypt/sha256.h>
|
||||
|
||||
#ifdef WOLFSSL_HAVE_XMSS
|
||||
#if defined(WOLFSSL_HAVE_XMSS) && defined(HAVE_LIBXMSS)
|
||||
|
||||
#include <wolfssl/wolfcrypt/ext_xmss.h>
|
||||
|
||||
#ifdef NO_INLINE
|
||||
|
@ -1042,4 +1043,4 @@ int wc_XmssKey_Verify(XmssKey * key, const byte * sig, word32 sigLen,
|
|||
return ret;
|
||||
}
|
||||
|
||||
#endif /* WOLFSSL_HAVE_XMSS */
|
||||
#endif /* WOLFSSL_HAVE_XMSS && HAVE_LIBXMSS */
|
||||
|
|
|
@ -22,12 +22,9 @@
|
|||
#ifndef EXT_LMS_H
|
||||
#define EXT_LMS_H
|
||||
|
||||
#ifdef WOLFSSL_HAVE_LMS
|
||||
#include <wolfssl/wolfcrypt/lms.h>
|
||||
#if defined(WOLFSSL_HAVE_LMS) && defined(HAVE_LIBLMS)
|
||||
|
||||
#if !defined(HAVE_LIBLMS)
|
||||
#error "This code requires liblms"
|
||||
#endif
|
||||
#include <wolfssl/wolfcrypt/lms.h>
|
||||
|
||||
/* hash-sigs LMS HSS includes */
|
||||
#include <hss.h>
|
||||
|
|
|
@ -22,12 +22,9 @@
|
|||
#ifndef EXT_XMSS_H
|
||||
#define EXT_XMSS_H
|
||||
|
||||
#ifdef WOLFSSL_HAVE_XMSS
|
||||
#include <wolfssl/wolfcrypt/xmss.h>
|
||||
#if defined(WOLFSSL_HAVE_XMSS) && defined(HAVE_LIBXMSS)
|
||||
|
||||
#if !defined(HAVE_LIBXMSS)
|
||||
#error "This code requires libxmss"
|
||||
#endif
|
||||
#include <wolfssl/wolfcrypt/xmss.h>
|
||||
|
||||
#include <xmss.h>
|
||||
#include <params.h>
|
||||
|
|
Loading…
Reference in New Issue