aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJamin Lin <jamin_lin@aspeedtech.com>2022-01-19 16:23:21 +0800
committerTom Rini <trini@konsulko.com>2022-01-28 17:58:41 -0500
commit2a4b0d5890deb0c973f8db7bb03adad96aff1050 (patch)
tree22f3c65ca8413a2ab750c948cd6c18a9b34633c8 /include
parent05ec899140d2f602544f9ec6aa753ab36feff0b0 (diff)
downloadu-boot-2a4b0d5890deb0c973f8db7bb03adad96aff1050.zip
u-boot-2a4b0d5890deb0c973f8db7bb03adad96aff1050.tar.gz
u-boot-2a4b0d5890deb0c973f8db7bb03adad96aff1050.tar.bz2
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 'include')
-rw-r--r--include/u-boot/rsa.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/u-boot/rsa.h b/include/u-boot/rsa.h
index 01b480d..b9634e3 100644
--- a/include/u-boot/rsa.h
+++ b/include/u-boot/rsa.h
@@ -111,6 +111,7 @@ int padding_pss_verify(struct image_sign_info *info,
#define RSA_DEFAULT_PADDING_NAME "pkcs-1.5"
#define RSA2048_BYTES (2048 / 8)
+#define RSA3072_BYTES (3072 / 8)
#define RSA4096_BYTES (4096 / 8)
/* This is the minimum/maximum key size we support, in bits */