summaryrefslogtreecommitdiff
path: root/boot
diff options
context:
space:
mode:
authorSean Anderson <[email protected]>2022-10-20 15:41:10 -0400
committerTom Rini <[email protected]>2022-10-26 11:36:06 -0400
commit0abe3323f5062032f8deb71cdc0635b124855d16 (patch)
tree7d8428ec3c6ff3870d783717e546c9db3b124847 /boot
parentb487387226d49ba2f39757269fb95ea398e8f384 (diff)
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: 8edecd3110e ("fit: Fix verification of images with external data") Fixes: c522949a29d ("rsa: sig: fix config signature check for fit with padding") Signed-off-by: Sean Anderson <[email protected]> Reviewed-by: Simon Glass <[email protected]>
Diffstat (limited to 'boot')
-rw-r--r--boot/image-fit-sig.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/boot/image-fit-sig.c b/boot/image-fit-sig.c
index a461d591a0e..12369896fe3 100644
--- a/boot/image-fit-sig.c
+++ b/boot/image-fit-sig.c
@@ -260,10 +260,10 @@ static int fit_config_check_sig(const void *fit, int noffset, int conf_noffset,
char **err_msgp)
{
static char * const exc_prop[] = {
- "data",
- "data-size",
- "data-position",
- "data-offset"
+ FIT_DATA_PROP,
+ FIT_DATA_SIZE_PROP,
+ FIT_DATA_POSITION_PROP,
+ FIT_DATA_OFFSET_PROP,
};
const char *prop, *end, *name;