commit | 64169ed99ee78ce7b12445fd389907199470d808 | [log] [tgz] |
---|---|---|
author | Fabio Utzig <utzig@apache.org> | Mon Mar 15 20:13:49 2021 -0300 |
committer | Fabio Utzig <utzig@apache.org> | Mon Mar 15 20:13:49 2021 -0300 |
tree | 4b39ef94d20933caffc17c9ff923b85181f0fc0c | |
parent | 4bdb75ba973f480c51be85f4c7cfc8352c87ca6c [diff] |
Fix encrypted image support When encrypting images, the hash was being calculated using the encrypted image body. This is invalid for MCUboot, the hash must be calculated first from the plain body and afterwards this body must be encrypted. This commit fixes the behavior. Signed-off-by: Fabio Utzig <utzig@apache.org>