[PATCH RFC 2/4] lib: rsa: use FIT_ALGO_PROP constant instead of "algo" in FIT
Quentin Schulz
foss+uboot at 0leil.net
Wed Apr 9 17:10:26 CEST 2025
From: Quentin Schulz <quentin.schulz at cherry.de>
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 <quentin.schulz at cherry.de>
---
lib/rsa/rsa-verify.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/rsa/rsa-verify.c b/lib/rsa/rsa-verify.c
index 4a0418a75f18e21e80612240aa626c0a240bc38c..e92767baae9bdac8bcaad41202f28e1fa6c23cf9 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;
--
2.49.0
More information about the U-Boot
mailing list