-
Notifications
You must be signed in to change notification settings - Fork 108
/
Copy pathsim-lms.config
49 lines (46 loc) · 1.27 KB
/
sim-lms.config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# LMS/HSS signature example, based on sim.config example.
#
# LMS/HSS is a post-quantum, stateful, hash-based signature scheme.
#
# The acceptable parameter values are those in RFC8554:
# levels = {1..8}
# height = {5, 10, 15, 20, 25}
# winternitz = {1, 2, 4, 8}
#
# The number of available signatures is:
# N = 2 ** (levels * height)
#
# LMS/HSS Signature sizes are directly proportional to the levels value,
# and inversely proportional to the Winternitz value. They grow only
# modestly with the height value.
#
# Key generation time is strongly determined by the height of the first
# level tree.
#
# Use the helper script
# tools/lms/lms_siglen
# to calculate your signature length given the chosen levels, height,
# Winternitz values.
#
ARCH=sim
TARGET=sim
SIGN?=LMS
HASH?=SHA256
LMS_LEVELS=1
LMS_HEIGHT=10
LMS_WINTERNITZ=8
IMAGE_SIGNATURE_SIZE=1456
IMAGE_HEADER_SIZE=4096
WOLFBOOT_SMALL_STACK=0
SPI_FLASH=0
DEBUG=0
DELTA_UPDATES=0
# sizes should be multiple of system page size
WOLFBOOT_PARTITION_SIZE=0x40000
WOLFBOOT_SECTOR_SIZE=0x1000
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