summaryrefslogtreecommitdiff
path: root/include/image.h
diff options
context:
space:
mode:
authorPhilippe Reynes <[email protected]>2020-09-17 15:01:46 +0200
committerTom Rini <[email protected]>2020-10-12 21:30:37 -0400
commita6982a6f768bdcf4bd0848ff4dbe68c2fd6599fb (patch)
treee50accdcee18fc7e01b2df722022a2d4ed64d7e9 /include/image.h
parent34ca77c1e113d42a63f8ae21b41ec7f9f356c1de (diff)
fit: cipher: aes: allow to store the IV in the FIT image
Binaries may be encrypted in a FIT image with AES. This algo needs a key and an IV (Initialization Vector). The IV is provided in a file (pointer by iv-name-hint in the ITS file) when building the ITB file. This commits adds provide an alternative way to manage the IV. If the property iv-name-hint is not provided in the ITS file, the tool mkimage will generate an random IV and store it in the FIT image. Signed-off-by: Philippe Reynes <[email protected]>
Diffstat (limited to 'include/image.h')
-rw-r--r--include/image.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/image.h b/include/image.h
index 9a5a87dbf87..10995b8e249 100644
--- a/include/image.h
+++ b/include/image.h
@@ -1463,7 +1463,7 @@ struct cipher_algo {
unsigned char **cipher, int *cipher_len);
int (*add_cipher_data)(struct image_cipher_info *info,
- void *keydest);
+ void *keydest, void *fit, int node_noffset);
int (*decrypt)(struct image_cipher_info *info,
const void *cipher, size_t cipher_len,