diff options
| author | Tom Rini <[email protected]> | 2024-12-19 09:10:48 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2024-12-19 09:14:34 -0600 |
| commit | 078542c346347406cfacdec8adeac66ae6758880 (patch) | |
| tree | 9f9595f90f31df739d496f2f460b7142d7f9d939 /include | |
| parent | 337bfdce5aa52637b482b182db959b9bb058f4b7 (diff) | |
| parent | e7d7d3307c6109f2bec5dd5ba779996dd891348d (diff) | |
Merge branch '2024-12-19-assorted-tooling-updates' into next
This brings in assortment of updates to our python tooling, from Paul
HENRYS <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/image.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/image.h b/include/image.h index 9be5acd8158..cfe3c971a36 100644 --- a/include/image.h +++ b/include/image.h @@ -1788,6 +1788,21 @@ struct cipher_algo { const unsigned char *data, int data_len, unsigned char **cipher, int *cipher_len); + /** + * add_cipher_data() - Add cipher data to the FIT and device tree + * + * This is used to add the ciphered data to the FIT and other cipher + * related information (key and initialization vector) to a device tree. + * + * @info: Pointer to image cipher information. + * @keydest: Pointer to a device tree where the key and IV can be + * stored. keydest can be NULL when the key is retrieved at + * runtime by another mean. + * @fit: Pointer to the FIT image. + * @node_noffset: Offset where the cipher information are stored in the + * FIT. + * return: 0 on success, a negative error code otherwise. + */ int (*add_cipher_data)(struct image_cipher_info *info, void *keydest, void *fit, int node_noffset); |
