mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 18:57:27 +02:00
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.
This commit is contained in:
@ -27,7 +27,8 @@
|
|||||||
#include <wolfssl/wolfcrypt/error-crypt.h>
|
#include <wolfssl/wolfcrypt/error-crypt.h>
|
||||||
#include <wolfssl/wolfcrypt/logging.h>
|
#include <wolfssl/wolfcrypt/logging.h>
|
||||||
|
|
||||||
#ifdef WOLFSSL_HAVE_LMS
|
#if defined(WOLFSSL_HAVE_LMS) && defined(HAVE_LIBLMS)
|
||||||
|
|
||||||
#include <wolfssl/wolfcrypt/ext_lms.h>
|
#include <wolfssl/wolfcrypt/ext_lms.h>
|
||||||
|
|
||||||
#ifdef NO_INLINE
|
#ifdef NO_INLINE
|
||||||
@ -1048,4 +1049,4 @@ int wc_LmsKey_Verify(LmsKey * key, const byte * sig, word32 sigSz,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* WOLFSSL_HAVE_LMS */
|
#endif /* WOLFSSL_HAVE_LMS && HAVE_LIBLMS */
|
||||||
|
@ -28,7 +28,8 @@
|
|||||||
#include <wolfssl/wolfcrypt/logging.h>
|
#include <wolfssl/wolfcrypt/logging.h>
|
||||||
#include <wolfssl/wolfcrypt/sha256.h>
|
#include <wolfssl/wolfcrypt/sha256.h>
|
||||||
|
|
||||||
#ifdef WOLFSSL_HAVE_XMSS
|
#if defined(WOLFSSL_HAVE_XMSS) && defined(HAVE_LIBXMSS)
|
||||||
|
|
||||||
#include <wolfssl/wolfcrypt/ext_xmss.h>
|
#include <wolfssl/wolfcrypt/ext_xmss.h>
|
||||||
|
|
||||||
#ifdef NO_INLINE
|
#ifdef NO_INLINE
|
||||||
@ -1042,4 +1043,4 @@ int wc_XmssKey_Verify(XmssKey * key, const byte * sig, word32 sigLen,
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* WOLFSSL_HAVE_XMSS */
|
#endif /* WOLFSSL_HAVE_XMSS && HAVE_LIBXMSS */
|
||||||
|
@ -22,12 +22,9 @@
|
|||||||
#ifndef EXT_LMS_H
|
#ifndef EXT_LMS_H
|
||||||
#define EXT_LMS_H
|
#define EXT_LMS_H
|
||||||
|
|
||||||
#ifdef WOLFSSL_HAVE_LMS
|
#if defined(WOLFSSL_HAVE_LMS) && defined(HAVE_LIBLMS)
|
||||||
#include <wolfssl/wolfcrypt/lms.h>
|
|
||||||
|
|
||||||
#if !defined(HAVE_LIBLMS)
|
#include <wolfssl/wolfcrypt/lms.h>
|
||||||
#error "This code requires liblms"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* hash-sigs LMS HSS includes */
|
/* hash-sigs LMS HSS includes */
|
||||||
#include <hss.h>
|
#include <hss.h>
|
||||||
|
@ -22,12 +22,9 @@
|
|||||||
#ifndef EXT_XMSS_H
|
#ifndef EXT_XMSS_H
|
||||||
#define EXT_XMSS_H
|
#define EXT_XMSS_H
|
||||||
|
|
||||||
#ifdef WOLFSSL_HAVE_XMSS
|
#if defined(WOLFSSL_HAVE_XMSS) && defined(HAVE_LIBXMSS)
|
||||||
#include <wolfssl/wolfcrypt/xmss.h>
|
|
||||||
|
|
||||||
#if !defined(HAVE_LIBXMSS)
|
#include <wolfssl/wolfcrypt/xmss.h>
|
||||||
#error "This code requires libxmss"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <xmss.h>
|
#include <xmss.h>
|
||||||
#include <params.h>
|
#include <params.h>
|
||||||
|
Reference in New Issue
Block a user