Skip to content

Commit 4e119ce

Browse files
committed
Addressed copilot's comment
1 parent 43f2273 commit 4e119ce

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tools/unit-tests/unit-update-flash.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,8 @@ static int add_payload_encrypted(uint8_t part, uint32_t version, uint32_t size,
324324
uint32_t chunk = total - off;
325325
if (chunk > WOLFBOOT_SECTOR_SIZE)
326326
chunk = WOLFBOOT_SECTOR_SIZE;
327+
if (use_fallback_iv)
328+
wolfBoot_enable_fallback_iv(1);
327329
ret = ext_flash_encrypt_write(base + off, buf + off, chunk);
328330
if (ret != 0)
329331
break;

0 commit comments

Comments
 (0)