wolfcrypt/src/wc_slhdsa.c:

* disable asm accelerations if WC_SHA3_NO_ASM is set.
* fix an uninited-data warning in slhdsakey_wots_pkgen_chain_c().
This commit is contained in:
Daniel Pouzzner
2026-06-27 14:41:44 -05:00
parent cba69093cc
commit ac5f2b98e7
+3 -1
View File
@@ -49,7 +49,7 @@
#include <wolfssl/wolfcrypt/hmac.h>
#endif
#ifdef WC_SLHDSA_NO_ASM
#if defined(WC_SLHDSA_NO_ASM) || defined(WC_SHA3_NO_ASM)
#undef USE_INTEL_SPEEDUP
#undef WOLFSSL_ARMASM
#undef WOLFSSL_RISCV_ASM
@@ -3283,6 +3283,8 @@ static int slhdsakey_wots_pkgen_chain_c(SlhDsaKey* key, const byte* sk_seed,
WC_ALLOC_VAR_EX(sk, byte, (SLHDSA_MAX_MSG_SZ + 3) * SLHDSA_MAX_N,
key->heap, DYNAMIC_TYPE_SLHDSA, ret = MEMORY_E);
if (ret == 0)
XMEMSET(sk, 0, (SLHDSA_MAX_MSG_SZ + 3) * SLHDSA_MAX_N);
if (ret == 0) {
/* Step 4. len consecutive addresses. */
for (i = 0; i < len; i++) {