]> git.baikalelectronics.ru Git - uboot.git/commit
mkimage: fit: Fix signing of configs with external data
authorSean Anderson <sean.anderson@seco.com>
Thu, 20 Oct 2022 19:41:10 +0000 (15:41 -0400)
committerTom Rini <trini@konsulko.com>
Wed, 26 Oct 2022 15:36:06 +0000 (11:36 -0400)
commit7705e367e2721b2f4f77396708df95398100a0b7
tree7d8428ec3c6ff3870d783717e546c9db3b124847
parent1435cb441d743d73362f8c177912354d5c8b7a2a
mkimage: fit: Fix signing of configs with external data

Just like we exclude data-size, data-position, and data-offset from
fit_config_check_sig, we must exclude them while signing as well.

While we're at it, use the FIT_DATA_* defines for fit_config_check_sig
as welll.

Fixes: b512984f916 ("fit: Fix verification of images with external data")
Fixes: f32731c542e ("rsa: sig: fix config signature check for fit with padding")
Signed-off-by: Sean Anderson <sean.anderson@seco.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
boot/image-fit-sig.c
tools/image-host.c