diff options
author | Paul HENRYS <paul.henrys_ext@softathome.com> | 2025-02-24 22:20:50 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2025-02-28 16:51:01 -0600 |
commit | 942c8c8e669739d2e8dec67a7ed90158defc93ed (patch) | |
tree | 94189e2c278fa8a56d603ce6008d8084a84113f9 /lib/rsa/rsa-verify.c | |
parent | dbb9e136b8c01de581a08113ae6124f484b29362 (diff) |
rsa: Add rsa_verify_openssl() to use openssl for host builds
rsa_verify_openssl() is used in lib/rsa/rsa-verify.c to authenticate data
when building host tools.
Signed-off-by: Paul HENRYS <paul.henrys_ext@softathome.com>
Diffstat (limited to 'lib/rsa/rsa-verify.c')
-rw-r--r-- | lib/rsa/rsa-verify.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/rsa/rsa-verify.c b/lib/rsa/rsa-verify.c index d3b4f71d6be..b74aaf86e6d 100644 --- a/lib/rsa/rsa-verify.c +++ b/lib/rsa/rsa-verify.c @@ -565,6 +565,11 @@ int rsa_verify(struct image_sign_info *info, uint8_t hash[info->crypto->key_len]; int ret; +#ifdef USE_HOSTCC + if (!info->fdt_blob) + return rsa_verify_openssl(info, region, region_count, sig, sig_len); +#endif + /* * Verify that the checksum-length does not exceed the * rsa-signature-length |