From 4e119ce11c626bb57b056c59849dfcf43355b626 Mon Sep 17 00:00:00 2001 From: Daniele Lacamera Date: Tue, 24 Feb 2026 16:21:23 +0100 Subject: [PATCH] Addressed copilot's comment --- tools/unit-tests/unit-update-flash.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/unit-tests/unit-update-flash.c b/tools/unit-tests/unit-update-flash.c index 26d39d94..cf42e2c1 100644 --- a/tools/unit-tests/unit-update-flash.c +++ b/tools/unit-tests/unit-update-flash.c @@ -324,6 +324,8 @@ static int add_payload_encrypted(uint8_t part, uint32_t version, uint32_t size, uint32_t chunk = total - off; if (chunk > WOLFBOOT_SECTOR_SIZE) chunk = WOLFBOOT_SECTOR_SIZE; + if (use_fallback_iv) + wolfBoot_enable_fallback_iv(1); ret = ext_flash_encrypt_write(base + off, buf + off, chunk); if (ret != 0) break;