From 2a4b0d5890deb0c973f8db7bb03adad96aff1050 Mon Sep 17 00:00:00 2001 From: Jamin Lin Date: Wed, 19 Jan 2022 16:23:21 +0800 Subject: 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 Reviewed-by: Simon Glass --- lib/rsa/rsa-verify.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/rsa') 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, -- cgit v1.2.3