diff options
author | Simon Glass <sjg@chromium.org> | 2021-11-12 12:28:10 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2022-01-26 08:50:44 -0700 |
commit | 99f844ba3a6b3ddd73742cddf7dee955bbb96c61 (patch) | |
tree | 27fbc1ca8b923dcfa06f090e6d0337993f0c9940 /common | |
parent | 2ad90b395313a7350cfb0543b4979a24746413b3 (diff) | |
download | u-boot-99f844ba3a6b3ddd73742cddf7dee955bbb96c61.tar.gz u-boot-99f844ba3a6b3ddd73742cddf7dee955bbb96c61.tar.bz2 u-boot-99f844ba3a6b3ddd73742cddf7dee955bbb96c61.zip |
tools: Pass the key blob around
At present we rely on the key blob being in the global_data fdt_blob
pointer. This is true in U-Boot but not with tools. For clarity, pass the
parameter around.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common')
-rw-r--r-- | common/spl/spl_fit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/spl/spl_fit.c b/common/spl/spl_fit.c index 774072b85c..1bbf824684 100644 --- a/common/spl/spl_fit.c +++ b/common/spl/spl_fit.c @@ -321,7 +321,8 @@ static int spl_load_fit_image(struct spl_load_info *info, ulong sector, if (CONFIG_IS_ENABLED(FIT_SIGNATURE)) { printf("## Checking hash(es) for Image %s ... ", fit_get_name(fit, node, NULL)); - if (!fit_image_verify_with_data(fit, node, src, length)) + if (!fit_image_verify_with_data(fit, node, gd_fdt_blob(), src, + length)) return -EPERM; puts("OK\n"); } |