Addressed copilot's comment

pull/694/head
Daniele Lacamera 2026-02-24 16:21:23 +01:00
parent 43f2273a7f
commit 4e119ce11c
1 changed files with 2 additions and 0 deletions

View File

@ -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;