Skip to content

Commit e855c59

Browse files
committed
zeroize swap trailer key buffer
F/1890
1 parent 2f75363 commit e855c59

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/update_flash.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -525,6 +525,10 @@ static int RAMFUNCTION wolfBoot_swap_and_final_erase(int resume)
525525
#endif
526526
hal_flash_lock();
527527

528+
#ifdef EXT_ENCRYPTED
529+
wolfBoot_zeroize(tmpBuffer, sizeof(tmpBuffer));
530+
#endif
531+
528532
return 0;
529533
}
530534
#ifdef __CCRX__

0 commit comments

Comments
 (0)