diff options
author | Simon Glass <sjg@chromium.org> | 2013-05-07 06:12:01 +0000 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2013-05-14 15:37:25 -0400 |
commit | bbb467dc3c79537eebc4d3551576a17f627e5e41 (patch) | |
tree | d4569a587c6da61ab22787232d19bdb134c3c351 /include/image.h | |
parent | 003efd7da48390d32956c24ab0d337ad452c83d2 (diff) | |
download | u-boot-imx-bbb467dc3c79537eebc4d3551576a17f627e5e41.zip u-boot-imx-bbb467dc3c79537eebc4d3551576a17f627e5e41.tar.gz u-boot-imx-bbb467dc3c79537eebc4d3551576a17f627e5e41.tar.bz2 |
image: Rename fit_add_hashes() to fit_add_verification_data()
We intend to add signatures to FITs also, so rename this function so that
it is not specific to hashing. Also rename fit_image_set_hashes() and
make it static since it is not used outside this file.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Marek Vasut <marex@denx.de>
Diffstat (limited to 'include/image.h')
-rw-r--r-- | include/image.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/include/image.h b/include/image.h index 6d7cd54..f82d709 100644 --- a/include/image.h +++ b/include/image.h @@ -614,8 +614,14 @@ int fit_image_hash_get_value(const void *fit, int noffset, uint8_t **value, int *value_len); int fit_set_timestamp(void *fit, int noffset, time_t timestamp); -int fit_set_hashes(void *fit); -int fit_image_set_hashes(void *fit, int image_noffset); + +/** + * fit_add_verification_data() - Calculate and add hashes to FIT + * + * @fit: Fit image to process + * @return 0 if ok, <0 for error + */ +int fit_add_verification_data(void *fit); int fit_image_verify(const void *fit, int noffset); int fit_all_image_verify(const void *fit); |