All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] crypto: Add new UCLASS_HASH
@ 2021-07-30  1:08 Chia-Wei Wang
  2021-07-30  1:08 ` [PATCH 1/4] lib/md5: Export progressive APIs Chia-Wei Wang
                   ` (4 more replies)
  0 siblings, 5 replies; 22+ messages in thread
From: Chia-Wei Wang @ 2021-07-30  1:08 UTC (permalink / raw)
  To: sjg, trini, u-boot

This patch series proposes new UCLASS_HASH for hash devices.
Thus the hash drivers (SW or HW-accelerated) can be developed
in the DM-based fashion.

A purely software implemented hash driver is also added under
the newly added UCLASS_HASH uclass. In addition, the FIT image
hash verification is also updated to leverage the UCLASS_HASH
driver if configured.

As there is widly spread use of non-DM hash functions (common/hash.c),
this patch does not remove them. More patches are needed if UCLASS_HASH
is established.

Chia-Wei Wang (4):
  lib/md5: Export progressive APIs
  dm: hash: Add new UCLASS_HASH support
  crypto: hash: Add software hash DM driver
  fit: Use DM hash driver if supported

 common/image-fit.c                |  30 +++
 drivers/crypto/Kconfig            |   2 +
 drivers/crypto/Makefile           |   1 +
 drivers/crypto/hash/Kconfig       |  16 ++
 drivers/crypto/hash/Makefile      |   6 +
 drivers/crypto/hash/hash-uclass.c | 121 ++++++++++++
 drivers/crypto/hash/hash_sw.c     | 301 ++++++++++++++++++++++++++++++
 include/dm/uclass-id.h            |   1 +
 include/u-boot/hash.h             |  61 ++++++
 include/u-boot/md5.h              |   4 +
 lib/md5.c                         |   6 +-
 11 files changed, 546 insertions(+), 3 deletions(-)
 create mode 100644 drivers/crypto/hash/Kconfig
 create mode 100644 drivers/crypto/hash/Makefile
 create mode 100644 drivers/crypto/hash/hash-uclass.c
 create mode 100644 drivers/crypto/hash/hash_sw.c
 create mode 100644 include/u-boot/hash.h

-- 
2.17.1


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

end of thread, other threads:[~2021-09-27 20:18 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-30  1:08 [PATCH 0/4] crypto: Add new UCLASS_HASH Chia-Wei Wang
2021-07-30  1:08 ` [PATCH 1/4] lib/md5: Export progressive APIs Chia-Wei Wang
2021-09-02 13:28   ` Tom Rini
2021-07-30  1:08 ` [PATCH 2/4] dm: hash: Add new UCLASS_HASH support Chia-Wei Wang
2021-09-02 13:28   ` Tom Rini
2021-09-22 16:19     ` Simon Glass
2021-09-22 23:56       ` ChiaWei Wang
2021-09-24  2:49         ` Simon Glass
2021-09-16 15:43   ` Alex G.
2021-09-22  3:18     ` ChiaWei Wang
2021-09-24  2:49     ` Simon Glass
2021-09-27 15:37       ` Alex G.
2021-09-27 20:17         ` Simon Glass
2021-07-30  1:08 ` [PATCH 3/4] crypto: hash: Add software hash DM driver Chia-Wei Wang
2021-09-02 13:28   ` Tom Rini
2021-09-16 15:48   ` Alex G.
2021-09-22  3:18     ` ChiaWei Wang
2021-07-30  1:08 ` [PATCH 4/4] fit: Use DM hash driver if supported Chia-Wei Wang
2021-09-02 13:28   ` Tom Rini
2021-09-16 15:59   ` Alex G.
2021-09-22  3:18     ` ChiaWei Wang
2021-08-25  1:21 ` [PATCH 0/4] crypto: Add new UCLASS_HASH ChiaWei Wang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.