Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions wolfssl/wolfcrypt/wc_lms.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,12 @@
#include <wolfssl/wolfcrypt/lms.h>
#include <wolfssl/wolfcrypt/sha256.h>

/* When hash struct internals are not accessible (hardware SHA acceleration),
* fall back to full hash API calls. */
#if defined(WOLFSSL_NO_HASH_RAW) && !defined(WC_LMS_FULL_HASH)
#define WC_LMS_FULL_HASH
#endif
Comment thread
LinuxJedi marked this conversation as resolved.
Outdated
Comment thread
LinuxJedi marked this conversation as resolved.

#ifdef WOLFSSL_LMS_MAX_LEVELS
/* Maximum number of levels of trees supported by implementation. */
#define LMS_MAX_LEVELS WOLFSSL_LMS_MAX_LEVELS
Expand Down
6 changes: 6 additions & 0 deletions wolfssl/wolfcrypt/wc_xmss.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@
#include <wolfssl/wolfcrypt/sha512.h>
#include <wolfssl/wolfcrypt/sha3.h>

/* When hash struct internals are not accessible (hardware SHA acceleration),
* fall back to full hash API calls. */
Comment thread
LinuxJedi marked this conversation as resolved.
Outdated
#if defined(WOLFSSL_NO_HASH_RAW) && !defined(WC_XMSS_FULL_HASH)
#define WC_XMSS_FULL_HASH
#endif
Comment thread
LinuxJedi marked this conversation as resolved.

#if !defined(WOLFSSL_WC_XMSS)
#error "This code is incompatible with external implementation of XMSS."
#endif
Expand Down