# ML-DSA signature example, based on sim.config example. # # The acceptable parameter values are those in FIPS 204: # # ML_DSA_LEVEL = {2, 3, 5} # # This corresponds to these security levels (from FIPS 204, Table 1.): # # Claimed Security Strength # ML-DSA-44 Category 2 # ML-DSA-65 Category 3 # ML-DSA-87 Category 5 # # The signature, pub key, and priv key lengths are all a function # of this parameter. Refer to this table (from FIPS 204, Table 2.) # to configure your IMAGE_SIGNATURE_SIZE: # # Table 2. Sizes (in bytes) of keys and signatures of ML-DSA # # Private Key Public Key Signature Size # ML-DSA-44 2560 1312 2420 # ML-DSA-65 4032 1952 3309 # ML-DSA-87 4896 2592 4627 # ARCH=sim TARGET=sim SIGN=ML_DSA HASH=SHA256 WOLFBOOT_SMALL_STACK=0 SPI_FLASH=0 DEBUG=0 DELTA_UPDATES=0 # # ML-DSA config examples: # # Category 2: ML_DSA_LEVEL=2 IMAGE_SIGNATURE_SIZE=2420 IMAGE_HEADER_SIZE=8192 # # Category 3: # ML_DSA_LEVEL=3 # IMAGE_SIGNATURE_SIZE=3309 # IMAGE_HEADER_SIZE=8192 # # Category 5: # ML_DSA_LEVEL=5 # IMAGE_SIGNATURE_SIZE=4627 # IMAGE_HEADER_SIZE=12288 # This example needsd larger sector size. # WOLFBOOT_SECTOR_SIZE=0x3000 # # sizes should be multiple of system page size WOLFBOOT_PARTITION_SIZE=0x40000 WOLFBOOT_SECTOR_SIZE=0x2000 WOLFBOOT_PARTITION_BOOT_ADDRESS=0x20000 # if on external flash, it should be multiple of system page size WOLFBOOT_PARTITION_UPDATE_ADDRESS=0x60000 WOLFBOOT_PARTITION_SWAP_ADDRESS=0xA0000 # required for keytools WOLFBOOT_FIXED_PARTITIONS=1