Skip to content

Commit 7071a1f

Browse files
committed
small cleanup.
1 parent b9c7c8d commit 7071a1f

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

config/examples/sim-ml-dsa.config

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ IMAGE_HEADER_SIZE?=8192
4848
# Category 5:
4949
# ML_DSA_LEVEL=5
5050
# IMAGE_SIGNATURE_SIZE=4627
51-
# IMAGE_HEADER_SIZE?=9254
51+
# IMAGE_HEADER_SIZE?=12288
52+
# This example needsd larger sector size.
53+
# WOLFBOOT_SECTOR_SIZE=0x3000
5254
#
5355

5456
# sizes should be multiple of system page size

tools/keytools/sign.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2433,6 +2433,11 @@ int main(int argc, char** argv)
24332433
else if (CMD.sign == SIGN_XMSS) {
24342434
#ifdef WOLFSSL_HAVE_XMSS
24352435
wc_XmssKey_Free(&key.xmss);
2436+
#endif
2437+
}
2438+
else if (CMD.sign == SIGN_ML_DSA) {
2439+
#ifdef WOLFSSL_WC_DILITHIUM
2440+
wc_MlDsaKey_Free(&key.ml_dsa);
24362441
#endif
24372442
}
24382443
return ret;

0 commit comments

Comments
 (0)