aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2022-01-14 10:21:19 +0100
committerTom Rini <trini@konsulko.com>2022-01-24 10:35:10 -0500
commit5902a397d029008a98e8e83b7627635ed3a2cd06 (patch)
treea9a7f6665bcf9d1166e02ab5aec3859b4d4d2f30 /include
parent6ae24346891d7e9d22707949c61f09346b28d761 (diff)
downloadu-boot-5902a397d029008a98e8e83b7627635ed3a2cd06.zip
u-boot-5902a397d029008a98e8e83b7627635ed3a2cd06.tar.gz
u-boot-5902a397d029008a98e8e83b7627635ed3a2cd06.tar.bz2
mkimage: Allow to specify the signature algorithm on the command line
This permits to prepare FIT image description that do not hard-code the final choice of the signature algorithm, possibly requiring the user to patch the sources. When -o <algo> is specified, this information is used in favor of the 'algo' property in the signature node. Furthermore, that property is set accordingly when writing the image. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Diffstat (limited to 'include')
-rw-r--r--include/image.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/image.h b/include/image.h
index 7be6f11..fe13562 100644
--- a/include/image.h
+++ b/include/image.h
@@ -1031,6 +1031,7 @@ int fit_cipher_data(const char *keydir, void *keydest, void *fit,
* @require_keys: Mark all keys as 'required'
* @engine_id: Engine to use for signing
* @cmdname: Command name used when reporting errors
+ * @algo_name: Algorithm name, or NULL if to be read from FIT
*
* Adds hash values for all component images in the FIT blob.
* Hashes are calculated for all component images which have hash subnodes
@@ -1045,7 +1046,7 @@ int fit_cipher_data(const char *keydir, void *keydest, void *fit,
int fit_add_verification_data(const char *keydir, const char *keyfile,
void *keydest, void *fit, const char *comment,
int require_keys, const char *engine_id,
- const char *cmdname);
+ const char *cmdname, const char *algo_name);
int fit_image_verify_with_data(const void *fit, int image_noffset,
const void *data, size_t size);