support rsa3072
cover support rsa3072
support rsa3072
Jamin Lin (1):
support rsa3072
common/image-sig.c | 7 +++++++ include/u-boot/rsa.h | 1 + 2 files changed, 8 insertions(+)
Signature · 1 line
2.17.1
PATCH 1/1 support rsa3072
This patch set support rsa3072.
--- common/image-sig.c | 7 +++++++ include/u-boot/rsa.h | 1 + 2 files changed, 8 insertions(+)
common/image-sig.c +7 -0
@@ -85,6 +85,13 @@ struct crypto_algo crypto_algos[] = { .add_verify_data = rsa_add_verify_data, .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,
include/u-boot/rsa.h +1 -0
@@ -135,6 +135,7 @@ static inline 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 */
Signature · 1 line
2.17.1
Quoted 31 lines · Jamin Lin
This patch set support rsa3072.
Signed-off-by Jamin Lin <[email protected]>--- common/image-sig.c | 7 +++++++ include/u-boot/rsa.h | 1 + 2 files changed, 8 insertions(+)common/image-sig.c +7
-0@@ -85,6 +85,13 @@ struct crypto_algo crypto_algos[] = { .add_verify_data = rsa_add_verify_data, .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,include/u-boot/rsa.h +0
-0
include/u-boot/rsa.h static inline int padding_pss_verify(struct image_sign_info *info, · line 141
Quoted 7 lines
include/u-boot/rsa.h +1
-0@@ -135,6 +135,7 @@ static inline 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 */
For both of these patches, please expand the commit message and header so it's clear where you're adding the support to. Perhaps they should be squashed in to a single patch as the tooling needs to support it when the binary also supports it?
Signature · 1 line
Tom
Quoted 39 lines · Tom Rini
Quoted 37 lines · Jamin Lin
This patch set support rsa3072.
Signed-off-by Jamin Lin <[email protected]>--- common/image-sig.c | 7 +++++++ include/u-boot/rsa.h | 1 + 2 files changed, 8 insertions(+)common/image-sig.c +7
-0@@ -85,6 +85,13 @@ struct crypto_algo crypto_algos[] = { .add_verify_data = rsa_add_verify_data, .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,include/u-boot/rsa.h +1
-0@@ -135,6 +135,7 @@ static inline 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)
Quoted 9 lines
include/u-boot/rsa.h static inline int padding_pss_verify(struct image_sign_info *info, · line 141
Quoted 1 line
include/u-boot/rsa.h +0
-0/* This is the minimum/maximum key size we support, in bits */ For both of these patches, please expand the commit message and header so it's clear where you're adding the support to. Perhaps they should be squashed in to a single patch as the tooling needs to support it when the binary also supports it?
Signature · 1 line
Tom
Hi Tom
Thanks for your review.
I sent v2 patch and waiting for your review.
Thanks