Skip to content

Commit

Permalink
Merge pull request #7868 from dgarske/pq_xms_lmss
Browse files Browse the repository at this point in the history
Fixes for building wolfBoot sources for PQ LMS/XMSS
  • Loading branch information
douzzer authored Aug 15, 2024
2 parents 14254e8 + 01eaa56 commit 003ea8b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 14 deletions.
5 changes: 3 additions & 2 deletions wolfcrypt/src/ext_lms.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 */
5 changes: 3 additions & 2 deletions wolfcrypt/src/ext_xmss.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 */
7 changes: 2 additions & 5 deletions wolfssl/wolfcrypt/ext_lms.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
7 changes: 2 additions & 5 deletions wolfssl/wolfcrypt/ext_xmss.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 003ea8b

Please sign in to comment.