mkimage: fit: add support to encrypt image with aes
authorPhilippe Reynes <philippe.reynes@softathome.com>
Wed, 18 Dec 2019 17:25:41 +0000 (18:25 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 17 Jan 2020 15:15:49 +0000 (10:15 -0500)
commit7298e422504ef4455160216b9b7a1baa1169283f
tree35e93c2a2a6c11b683523b657593bd93ef5fd978
parent1c6cd16de810f88c27c5c945a30e0e9f3842df68
mkimage: fit: add support to encrypt image with aes

This commit add the support of encrypting image with aes
in mkimage. To enable the ciphering, a node cipher with
a reference to a key and IV (Initialization Vector) must
be added to the its file. Then mkimage add the encrypted
image to the FIT and add the key and IV to the u-boot
device tree.

Signed-off-by: Philippe Reynes <philippe.reynes@softathome.com>
Kconfig
common/Makefile
common/image-cipher.c [new file with mode: 0644]
common/image-fit.c
include/image.h
include/u-boot/aes.h [new file with mode: 0644]
lib/aes/aes-encrypt.c [new file with mode: 0644]
tools/Makefile
tools/fit_image.c
tools/image-host.c