diff options
| author | Tom Rini <[email protected]> | 2025-02-21 08:34:34 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2025-02-21 11:37:27 -0600 |
| commit | c8750efe02c20725388dd4279896aaf306acfad4 (patch) | |
| tree | 54c9405d7019e51e7654d4ef4c4c1026fba8f02a /lib | |
| parent | 8c6cf8aeea7e57ca686de8b765e4baf3a7ef1fa7 (diff) | |
| parent | a9842ac6347e2e0e7f6f8b66b5fe254739cdd298 (diff) | |
Merge patch series "Add preload_check_sign tool"
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 |
