summaryrefslogtreecommitdiff
path: root/lib/rsa
diff options
context:
space:
mode:
authorQuentin Schulz <[email protected]>2025-12-03 17:19:33 +0100
committerTom Rini <[email protected]>2025-12-16 11:39:38 -0600
commit883359e152d5000943411ef7d2daaec6c137f47d (patch)
tree5af1cf6e778b476a3284bc9c456891b2a1dcb616 /lib/rsa
parent634dcda25924567d000396542948fc33c7e8bc1a (diff)
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 <[email protected]>
Diffstat (limited to 'lib/rsa')
-rw-r--r--lib/rsa/rsa-verify.c2
1 files changed, 1 insertions, 1 deletions
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;