summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJamin Lin <[email protected]>2022-01-19 16:23:21 +0800
committerTom Rini <[email protected]>2022-01-28 17:58:41 -0500
commit2a4b0d5890deb0c973f8db7bb03adad96aff1050 (patch)
tree22f3c65ca8413a2ab750c948cd6c18a9b34633c8 /tools
parent05ec899140d2f602544f9ec6aa753ab36feff0b0 (diff)
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 <[email protected]> Reviewed-by: Simon Glass <[email protected]>
Diffstat (limited to 'tools')
-rw-r--r--tools/image-sig-host.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/image-sig-host.c b/tools/image-sig-host.c
index 8ed6998dab0..d0133aec4c8 100644
--- a/tools/image-sig-host.c
+++ b/tools/image-sig-host.c
@@ -56,6 +56,13 @@ struct crypto_algo crypto_algos[] = {
.verify = rsa_verify,
},
{
+ .name = "rsa3072",
+ .key_len = RSA3072_BYTES,
+ .sign = rsa_sign,
+ .add_verify_data = rsa_add_verify_data,
+ .verify = rsa_verify,
+ },
+ {
.name = "rsa4096",
.key_len = RSA4096_BYTES,
.sign = rsa_sign,