diff options
| author | Tom Rini <[email protected]> | 2025-02-28 16:51:10 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2025-02-28 16:51:10 -0600 |
| commit | 5bc4240eb65c378eeca3f45069eeb125cd01ceed (patch) | |
| tree | 9ed59cbf2b17e758d08bb1839ef81772db41a41a /lib | |
| parent | 962217d218cfb4e9584e2669f091eaba60654dd8 (diff) | |
| parent | b9b87d01efc496d18bbc17c58c552d54a06ef6ba (diff) | |
Merge patch series "rsa: Add rsa_verify_openssl() to use openssl for host builds"
Paul HENRYS <[email protected]> says:
This serie of patches adds a new tool to authenticate files signed with
a preload header. This tool is also used in the tests to actually
verify the authenticity of the file signed with such a preload header.
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib')
| -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 |
