When the signing algorithm is given with -o, fit_image_write_sig() records it in the "algo" property of the signature node using a string literal, while fit_image_hash_get_algo(), which mkimage and the verification code use to read that property, uses FIT_ALGO_PROP. Use the constant for the write as well.
No functional change. Signed-off-by: Aristo Chen <[email protected]> Reviewed-by: Quentin Schulz <[email protected]> --- v2: split out of v1 patch 1, no code changes, Reviewed-by from v1 patch 1 kept tools/image-host.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/image-host.c b/tools/image-host.c index 46036673050..3974ee3d389 100644 --- a/tools/image-host.c +++ b/tools/image-host.c @@ -167,7 +167,8 @@ static int fit_image_write_sig(void *fit, int noffset, uint8_t *value, } } if (algo_name && !ret) - ret = fdt_setprop_string(fit, noffset, "algo", algo_name); + ret = fdt_setprop_string(fit, noffset, FIT_ALGO_PROP, + algo_name); return ret; } -- 2.43.0
