Merge pull request #8981 from dgarske/mldsa

Fix build issue with ML-DSA 44 only
This commit is contained in:
Sean Parkinson
2025-07-10 09:41:36 +10:00
committed by GitHub
3 changed files with 10 additions and 7 deletions

View File

@@ -1470,18 +1470,20 @@ ENABLED_MLKEM_DECAPSULATE=no
for v in `echo $ENABLED_MLKEM | tr "," " "`
do
case $v in
yes|all)
yes)
ENABLED_MLKEM512=yes
ENABLED_MLKEM768=yes
ENABLED_MLKEM1024=yes
ENABLED_MLKEM_MAKE_KEY=yes
ENABLED_MLKEM_ENCAPSULATE=yes
ENABLED_MLKEM_DECAPSULATE=yes
if test "$v" = "all"
then
ENABLED_ML_KEM=yes
ENABLED_ORIGINAL=yes
fi
;;
all)
ENABLED_MLKEM_MAKE_KEY=yes
ENABLED_MLKEM_ENCAPSULATE=yes
ENABLED_MLKEM_DECAPSULATE=yes
ENABLED_ML_KEM=yes
ENABLED_ORIGINAL=yes
;;
no)
;;

View File

@@ -6682,7 +6682,6 @@ static int dilithium_sign_with_seed_mu(dilithium_key* key,
ze += DILITHIUM_GAMMA1_17_ENC_BITS / 2 *
DILITHIUM_N / 4;
}
else
#endif
#if !defined(WOLFSSL_NO_ML_DSA_65) || \
!defined(WOLFSSL_NO_ML_DSA_87)

View File

@@ -110,6 +110,8 @@ const byte const_byte_array[] = "A+Gd\0\0\0";
heap_baselineAllocs = wolfCrypt_heap_peakAllocs_checkpoint(); \
heap_baselineBytes = wolfCrypt_heap_peakBytes_checkpoint(); \
}
#define PRINT_HEAP_ADDRESS(p) \
printf("Allocated address: %p", (void *)(p));
#else
#define PRINT_HEAP_CHECKPOINT(b, i) WC_DO_NOTHING;
#define PRINT_HEAP_ADDRESS(p) WC_DO_NOTHING;