mcuboot/boot/bootutil
Fabio Utzig 3c44607e16 bootutil: fix enckey issue when reverting
While doing a revert, the image encryption keys might be saved temporarily
in the scratch area; this is required in situations that we need to swap
one of the last sectors of the primary slot. When this happens, and the
device is interrupted just after restarting the revert swap, bootutil will
try to load the encrypted keys from the primary slot, and possibly use them
in reverted order (image in primary uses key of image in secondary and
vice-versa) which was saved in the test upgrade.

This fixes the issue by reverting the order used to check for the swap
metadata, with scratch being checked before the primary slot.

Signed-off-by: Fabio Utzig <utzig@apache.org>
2019-11-22 15:15:29 -03:00
..
include/bootutil bootutil: add ECIES-P256 support 2019-11-06 06:55:25 -03:00
src bootutil: fix enckey issue when reverting 2019-11-22 15:15:29 -03:00
pkg.yml mynewt: Make cflags consistent for if or ifdef usage 2019-10-21 17:22:34 -03:00