Skip to content

Commit d620e93

Browse files
Merge pull request wolfSSL#8229 from bigbrett/pqc-macro-protection-quickfix
PQC macro protection quickfixes
2 parents e7d801e + 1283325 commit d620e93

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

wolfssl/wolfcrypt/asn.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1620,7 +1620,8 @@ struct SignatureCtx {
16201620
byte* sigCpy;
16211621
#endif
16221622
#if defined(HAVE_ECC) || defined(HAVE_ED25519) || defined(HAVE_ED448) || \
1623-
!defined(NO_DSA)
1623+
!defined(NO_DSA) || defined(HAVE_DILITHIUM) || defined(HAVE_FALCON) || \
1624+
defined(HAVE_SPHINCS)
16241625
int verify;
16251626
#endif
16261627
union {
@@ -1898,12 +1899,14 @@ struct DecodedCert {
18981899
#endif
18991900
#endif /* WOLFSSL_SUBJ_INFO_ACC */
19001901

1901-
#if defined(HAVE_ECC) || defined(HAVE_ED25519) || defined(HAVE_ED448)
1902+
#if defined(HAVE_ECC) || defined(HAVE_ED25519) || defined(HAVE_ED448) || \
1903+
defined(HAVE_DILITHIUM) || defined(HAVE_FALCON) || defined(HAVE_SPHINCS)
19021904
word32 pkCurveOID; /* Public Key's curve OID */
19031905
#ifdef WOLFSSL_CUSTOM_CURVES
19041906
int pkCurveSize; /* Public Key's curve size */
19051907
#endif
1906-
#endif /* HAVE_ECC */
1908+
#endif /* HAVE_ECC || HAVE_ED25519 || HAVE_ED448 || HAVE_DILITHIUM ||
1909+
* HAVE_FALCON || HAVE_SPHINCS */
19071910
const byte* beforeDate;
19081911
int beforeDateLen;
19091912
const byte* afterDate;

wolfssl/wolfcrypt/cryptocb.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@
5050
#ifndef NO_SHA256
5151
#include <wolfssl/wolfcrypt/sha256.h>
5252
#endif
53+
#ifdef WOLFSSL_SHA3
54+
#include <wolfssl/wolfcrypt/sha3.h>
55+
#endif
5356
#ifndef NO_HMAC
5457
#include <wolfssl/wolfcrypt/hmac.h>
5558
#endif

0 commit comments

Comments
 (0)