summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorChia-Wei Wang <[email protected]>2024-10-14 17:56:18 +0800
committerTom Rini <[email protected]>2024-10-21 17:52:52 -0600
commit75068b1a2dbcf475c1043e7aa0f6882554d759bc (patch)
tree2a29e5485b5f474d83fb437f0c2e05952ae2ed2f /tools
parent3794bbf9e0e7ce2652935514cbfac49545c329a9 (diff)
lib: ecdsa: Add ECDSA384 support
Add ECDSA384 algorithm support for image signing and verification. Signed-off-by: Chia-Wei Wang <[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 21b4fa5d39d..5285263c616 100644
--- a/tools/image-sig-host.c
+++ b/tools/image-sig-host.c
@@ -77,6 +77,13 @@ struct crypto_algo crypto_algos[] = {
.verify = ecdsa_verify,
},
{
+ .name = "ecdsa384",
+ .key_len = ECDSA384_BYTES,
+ .sign = ecdsa_sign,
+ .add_verify_data = ecdsa_add_verify_data,
+ .verify = ecdsa_verify,
+ },
+ {
.name = "secp521r1",
.key_len = ECDSA521_BYTES,
.sign = ecdsa_sign,