From: Quentin Schulz Date: Wed, 3 Dec 2025 16:19:33 +0000 (+0100) Subject: lib: rsa: use FIT_ALGO_PROP constant instead of "algo" in FIT X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=883359e152d5000943411ef7d2daaec6c137f47d;p=thirdparty%2Fu-boot.git lib: rsa: use FIT_ALGO_PROP constant instead of "algo" in FIT Some FIT image properties have their string represented in include/image.h via constants. FIT_ALGO_PROP does exist and would fit the bill so let's use it instead of using a hardcoded string. Signed-off-by: Quentin Schulz --- diff --git a/lib/rsa/rsa-verify.c b/lib/rsa/rsa-verify.c index e7e612a4688..3169c3a6dd1 100644 --- a/lib/rsa/rsa-verify.c +++ b/lib/rsa/rsa-verify.c @@ -448,7 +448,7 @@ static int rsa_verify_with_keynode(struct image_sign_info *info, return -EBADF; } - algo = fdt_getprop(blob, node, "algo", NULL); + algo = fdt_getprop(blob, node, FIT_ALGO_PROP, NULL); if (!algo) { debug("%s: Missing 'algo' property\n", __func__); return -EFAULT;