From 4b4ed983103f44584a1e652a2cbd4be659348114 Mon Sep 17 00:00:00 2001 From: Fabio Utzig Date: Mon, 6 Jan 2020 09:09:51 -0300 Subject: [PATCH] sim: enable saving encrypted TLV for ECIES This changes the simulator to save the encryption TLV itself instead of the unecrypted AES-128 key when doing the ECIES encryption test, to add proper test coverage of this configuration option. Signed-off-by: Fabio Utzig --- sim/mcuboot-sys/build.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/sim/mcuboot-sys/build.rs b/sim/mcuboot-sys/build.rs index 43af184e..1c6584fd 100644 --- a/sim/mcuboot-sys/build.rs +++ b/sim/mcuboot-sys/build.rs @@ -178,6 +178,7 @@ fn main() { conf.define("MCUBOOT_ENCRYPT_EC256", None); conf.define("MCUBOOT_ENC_IMAGES", None); conf.define("MCUBOOT_USE_TINYCRYPT", None); + conf.define("MCUBOOT_SWAP_SAVE_ENCTLV", None); conf.file("../../boot/bootutil/src/encrypted.c"); conf.file("csupport/keys.c");