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 <quentin.schulz@cherry.de>
This commit is contained in:
Quentin Schulz 2025-12-03 17:19:33 +01:00 committed by Tom Rini
parent 634dcda259
commit 883359e152

View File

@ -448,7 +448,7 @@ static int rsa_verify_with_keynode(struct image_sign_info *info,
return -EBADF; return -EBADF;
} }
algo = fdt_getprop(blob, node, "algo", NULL); algo = fdt_getprop(blob, node, FIT_ALGO_PROP, NULL);
if (!algo) { if (!algo) {
debug("%s: Missing 'algo' property\n", __func__); debug("%s: Missing 'algo' property\n", __func__);
return -EFAULT; return -EFAULT;