summaryrefslogtreecommitdiffstats
path: root/common/image-cipher.c
Commit message (Collapse)AuthorAgeFilesLines
* fit: cipher: aes: allow to read the IV in the FIT imagePhilippe Reynes2020-10-121-7/+15
| | | | | | | This commit add the support in u-boot to read the IV in the FIT image instead of u-boot device tree. Signed-off-by: Philippe Reynes <philippe.reynes@softathome.com>
* common: Drop linux/bitops.h from common headerSimon Glass2020-05-181-1/+1
| | | | | | Move this uncommon header out of the common header. Signed-off-by: Simon Glass <sjg@chromium.org>
* image: Use constants for 'required' and 'key-name-hint'Simon Glass2020-04-011-1/+1
| | | | | | | These are used in multiple places so update them to use a shared #define. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Philippe Reynes <philippe.reynes@softathome.com>
* u-boot: fit: add support to decrypt fit with aesPhilippe Reynes2020-01-171-0/+104
| | | | | | | | | | This commit add to u-boot the support to decrypt fit image encrypted with aes. The FIT image contains the key name and the IV name. Then u-boot look for the key and IV in his device tree and decrypt images before moving to the next stage. Signed-off-by: Philippe Reynes <philippe.reynes@softathome.com>
* mkimage: fit: add support to encrypt image with aesPhilippe Reynes2020-01-171-0/+63
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>