Skip to content
Commit bc07793a authored by Fabio Utzig's avatar Fabio Utzig Committed by Fabio Utzig
Browse files

Add macro to check if image must be decrypted



An image must be decrypted when it is loaded on the secondary slot and
its header flag indicates it is encrypted. Instead of checking both
things every time the image is read, add a new macro, MUST_DECRYPT, that
does both checks.

Also `BOOT_CURR_ENC` was simplified to be used directly on
`bootutil_img_validate` calls, returning NULL for no encrypted images.

Signed-off-by: default avatarFabio Utzig <utzig@apache.org>
parent 1e4284b3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment