Skip to content

Commit 74c69c4

Browse files
committed
[nrf noup] sysbuild: Support for ED25519 including PureEdDSA
Commit adds sysbuild support for setting ED25519 signature type for application image and Pure modifier, to the signature, that allows to indicate that signature will be calculated over an entire image, rather than hash of the image. Signed-off-by: Dominik Ermel <[email protected]>
1 parent 53b26fb commit 74c69c4

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

modules/Kconfig.mcuboot

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,16 @@ endmenu # On board MCUboot operation mode
260260

261261
endif # BOOTLOADER_MCUBOOT
262262

263+
menu "Sysbuild passed options"
264+
265+
config MCUBOOT_BOOTLOADER_SIGNATURE_TYPE_ED25519
266+
bool "Use ED25519 signature"
267+
268+
config MCUBOOT_BOOTLOADER_SIGNATURE_TYPE_PURE
269+
bool "Signature is verified over an image rather than sha of an image"
270+
271+
endmenu # Sysbuild passed options
272+
263273
menuconfig MCUBOOT_BOOTUTIL_LIB
264274
bool "MCUboot utility library"
265275
help

share/sysbuild/image_configurations/MAIN_image_default.cmake

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,16 @@ if(SB_CONFIG_BOOTLOADER_MCUBOOT)
3737
elseif(SB_CONFIG_MCUBOOT_MODE_FIRMWARE_UPDATER)
3838
set_config_bool(${ZCMAKE_APPLICATION} CONFIG_MCUBOOT_BOOTLOADER_MODE_FIRMWARE_UPDATER y)
3939
endif()
40+
41+
if(SB_CONFIG_BOOT_SIGNATURE_TYPE_ED25519)
42+
set_config_bool(${ZCMAKE_APPLICATION} CONFIG_MCUBOOT_BOOTLOADER_SIGNATURE_TYPE_ED25519 y)
43+
if(SB_CONFIG_BOOT_SIGNATURE_TYPE_PURE)
44+
set_config_bool(${ZCMAKE_APPLICATION} CONFIG_MCUBOOT_BOOTLOADER_SIGNATURE_TYPE_PURE y)
45+
else()
46+
set_config_bool(${ZCMAKE_APPLICATION} CONFIG_MCUBOOT_BOOTLOADER_SIGNATURE_TYPE_PURE n)
47+
endif()
48+
else()
49+
set_config_bool(${ZCMAKE_APPLICATION} CONFIG_MCUBOOT_BOOTLOADER_SIGNATURE_TYPE_ED25519 n)
50+
endif()
51+
4052
endif()

0 commit comments

Comments
 (0)