Skip to content

Commit 98adb33

Browse files
authored
Merge pull request #8981 from dgarske/mldsa
Fix build issue with ML-DSA 44 only
2 parents 7ba6f83 + 5d89ca6 commit 98adb33

3 files changed

Lines changed: 10 additions & 7 deletions

File tree

configure.ac

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1470,18 +1470,20 @@ ENABLED_MLKEM_DECAPSULATE=no
14701470
for v in `echo $ENABLED_MLKEM | tr "," " "`
14711471
do
14721472
case $v in
1473-
yes|all)
1473+
yes)
14741474
ENABLED_MLKEM512=yes
14751475
ENABLED_MLKEM768=yes
14761476
ENABLED_MLKEM1024=yes
14771477
ENABLED_MLKEM_MAKE_KEY=yes
14781478
ENABLED_MLKEM_ENCAPSULATE=yes
14791479
ENABLED_MLKEM_DECAPSULATE=yes
1480-
if test "$v" = "all"
1481-
then
1482-
ENABLED_ML_KEM=yes
1483-
ENABLED_ORIGINAL=yes
1484-
fi
1480+
;;
1481+
all)
1482+
ENABLED_MLKEM_MAKE_KEY=yes
1483+
ENABLED_MLKEM_ENCAPSULATE=yes
1484+
ENABLED_MLKEM_DECAPSULATE=yes
1485+
ENABLED_ML_KEM=yes
1486+
ENABLED_ORIGINAL=yes
14851487
;;
14861488
no)
14871489
;;

wolfcrypt/src/dilithium.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6682,7 +6682,6 @@ static int dilithium_sign_with_seed_mu(dilithium_key* key,
66826682
ze += DILITHIUM_GAMMA1_17_ENC_BITS / 2 *
66836683
DILITHIUM_N / 4;
66846684
}
6685-
else
66866685
#endif
66876686
#if !defined(WOLFSSL_NO_ML_DSA_65) || \
66886687
!defined(WOLFSSL_NO_ML_DSA_87)

wolfcrypt/test/test.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ const byte const_byte_array[] = "A+Gd\0\0\0";
110110
heap_baselineAllocs = wolfCrypt_heap_peakAllocs_checkpoint(); \
111111
heap_baselineBytes = wolfCrypt_heap_peakBytes_checkpoint(); \
112112
}
113+
#define PRINT_HEAP_ADDRESS(p) \
114+
printf("Allocated address: %p", (void *)(p));
113115
#else
114116
#define PRINT_HEAP_CHECKPOINT(b, i) WC_DO_NOTHING;
115117
#define PRINT_HEAP_ADDRESS(p) WC_DO_NOTHING;

0 commit comments

Comments
 (0)