public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH v2 0/4] aspeed: ast2700: Add Caliptra ECDSA driver
@ 2024-09-27  3:07 Chia-Wei Wang
  2024-09-27  3:07 ` [PATCH v2 1/4] lib: ecdsa: Add ECDSA384 support Chia-Wei Wang
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Chia-Wei Wang @ 2024-09-27  3:07 UTC (permalink / raw)
  To: trini, sjg, bob.wolff68, u-boot

Aspeed AST2700 SoCs integrates the Caliptra secure IP, where an ECDSA384
signature verification HW interface is exported for SoC crypto needs.

This patch series firstly extends the FIT image signing/verify common
code to support the ECDSA384 algorithm. For better convenience, the
device tree for ECDSA public key storage is also revised by referring
to RSA implementations.

After the FIT common code revision, the driver is implemented for
AST2700 to leverage the Caliptra ECDSA384 signature verification.

These are verified by signed FIT images with the algorithm "sha384,ecdsa384".

v2 change:
  - revise the commit message of padding check removal for better explanation
  - remove redundant check in static function
  - revise errno and error message as suggested by Simon
  - collect Reviewed-by tags

Chia-Wei Wang (4):
  lib: ecdsa: Add ECDSA384 support
  lib: ecdsa: Create device tree node automatically
  image-fit-sig: Remove padding check
  drivers/crypto: aspeed: Add Caliptra ECDSA384 support

 boot/image-fit-sig.c                |   2 +-
 drivers/crypto/aspeed/Kconfig       |  10 ++
 drivers/crypto/aspeed/Makefile      |   1 +
 drivers/crypto/aspeed/cptra_ecdsa.c | 184 ++++++++++++++++++++++++++++
 include/u-boot/ecdsa.h              |   1 +
 lib/ecdsa/ecdsa-libcrypto.c         |  25 ++--
 lib/ecdsa/ecdsa-verify.c            |  14 ++-
 tools/image-sig-host.c              |   7 ++
 8 files changed, 233 insertions(+), 11 deletions(-)
 create mode 100644 drivers/crypto/aspeed/cptra_ecdsa.c

-- 
2.25.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-10-14  2:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-27  3:07 [PATCH v2 0/4] aspeed: ast2700: Add Caliptra ECDSA driver Chia-Wei Wang
2024-09-27  3:07 ` [PATCH v2 1/4] lib: ecdsa: Add ECDSA384 support Chia-Wei Wang
2024-09-27  3:07 ` [PATCH v2 2/4] lib: ecdsa: Create device tree node automatically Chia-Wei Wang
2024-09-27  3:07 ` [PATCH v2 3/4] image-fit-sig: Remove padding check Chia-Wei Wang
2024-09-27  3:07 ` [PATCH v2 4/4] drivers/crypto: aspeed: Add Caliptra ECDSA384 support Chia-Wei Wang
2024-10-11 17:34 ` [PATCH v2 0/4] aspeed: ast2700: Add Caliptra ECDSA driver Tom Rini
2024-10-14  2:07   ` ChiaWei Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox