]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
lib: rsa: use FIT_ALGO_PROP constant instead of "algo" in FIT
authorQuentin Schulz <quentin.schulz@cherry.de>
Wed, 3 Dec 2025 16:19:33 +0000 (17:19 +0100)
committerTom Rini <trini@konsulko.com>
Tue, 16 Dec 2025 17:39:38 +0000 (11:39 -0600)
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>
lib/rsa/rsa-verify.c

index e7e612a468843dcd4fd5bc9056e19d603513053f..3169c3a6dd1e81ad018a1e8d3da3258489f9cdc4 100644 (file)
@@ -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;