diff options
author | Jamin Lin <jamin_lin@aspeedtech.com> | 2022-01-19 16:23:21 +0800 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-01-28 17:58:41 -0500 |
commit | 2a4b0d5890deb0c973f8db7bb03adad96aff1050 (patch) | |
tree | 22f3c65ca8413a2ab750c948cd6c18a9b34633c8 /lib | |
parent | 05ec899140d2f602544f9ec6aa753ab36feff0b0 (diff) | |
download | u-boot-2a4b0d5890deb0c973f8db7bb03adad96aff1050.tar.gz u-boot-2a4b0d5890deb0c973f8db7bb03adad96aff1050.tar.bz2 u-boot-2a4b0d5890deb0c973f8db7bb03adad96aff1050.zip |
rsa: adds rsa3072 algorithm
Add to support rsa 3072 bits algorithm in tools
for image sign at host side and adds rsa 3072 bits
verification in the image binary.
Add test case in vboot for sha384 with rsa3072 algorithm testing.
Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rsa/rsa-verify.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/rsa/rsa-verify.c b/lib/rsa/rsa-verify.c index 32c7507024..112664059c 100644 --- a/lib/rsa/rsa-verify.c +++ b/lib/rsa/rsa-verify.c @@ -595,6 +595,12 @@ U_BOOT_CRYPTO_ALGO(rsa2048) = { .verify = rsa_verify, }; +U_BOOT_CRYPTO_ALGO(rsa3072) = { + .name = "rsa3072", + .key_len = RSA3072_BYTES, + .verify = rsa_verify, +}; + U_BOOT_CRYPTO_ALGO(rsa4096) = { .name = "rsa4096", .key_len = RSA4096_BYTES, |