3c44607e16
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> |
||
---|---|---|
.. | ||
include/bootutil | ||
src | ||
pkg.yml |