Skip to content

crypto: sun8i-ce: support TRNG, PRNG and hashes

Corentin Labbe linux-arm-kernel linux-crypto lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9crypto: rng - add missing __crypto_rng_cast to the rng headerinclude/crypto/rng.h+5 -00 replies
2/9crypto: sun8i-ce: move iv data to request contextdrivers/crypto/allwinner/sun8i-ce/sun8i-ce-cipher.c drivers/crypto/allwinner/sun8i-ce/sun8i-ce.h+19 -180 replies
3/9crypto: sun8i-ce: split into prepare/run/unpreparedrivers/crypto/allwinner/sun8i-ce/sun8i-ce-cipher.c drivers/crypto/allwinner/sun8i-ce/sun8i-ce.h+66 -80 replies
4/9crypto: sun8i-ce: handle different error registersdrivers/crypto/allwinner/sun8i-ce/sun8i-ce-core.c drivers/crypto/allwinner/sun8i-ce/sun8i-ce.h+58 -80 replies
5/9crypto: sun8i-ce: rename has_t_dlen_in_bytes to cipher_t_dlen_in_bytesdrivers/crypto/allwinner/sun8i-ce/sun8i-ce-cipher.c drivers/crypto/allwinner/sun8i-ce/sun8i-ce-core.c drivers/crypto/allwinner/sun8i-ce/sun8i-ce.h+4 -40 replies
6/9crypto: sun8i-ce: support hash algorithmsdrivers/crypto/allwinner/Kconfig drivers/crypto/allwinner/sun8i-ce/Makefile drivers/crypto/allwinner/sun8i-ce/sun8i-ce-core.c +2 more+713 -00 replies
7/9crypto: sun8i-ce: Add stat_bytes debugfsdrivers/crypto/allwinner/sun8i-ce/sun8i-ce.h+2 -00 replies
8/9crypto: sun8i-ce: Add support for the PRNGdrivers/crypto/allwinner/Kconfig drivers/crypto/allwinner/sun8i-ce/Makefile drivers/crypto/allwinner/sun8i-ce/sun8i-ce-core.c +2 more+288 -10 replies
9/9crypto: sun8i-ce: Add support for the TRNGdrivers/crypto/allwinner/Kconfig drivers/crypto/allwinner/sun8i-ce/Makefile drivers/crypto/allwinner/sun8i-ce/sun8i-ce-core.c +2 more+168 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/9] crypto: sun8i-ce: support TRNG, PRNG and hashes

Hello

The main goal of this serie is to add support for TRNG, PRNG and hashes to the sun8i-ce.
The whole serie is tested with CRYPTO_EXTRA_TESTS enabled and loading tcrypt.
The PRNG and TRNG are tested with rngtest.

Note that the first patch is common with the recent sun8i-ss PRNG+hashes serie.

Regards

Corentin Labbe (9):
crypto: rng - add missing __crypto_rng_cast to the rng header
crypto: sun8i-ce: move iv data to request context
crypto: sun8i-ce: split into prepare/run/unprepare
crypto: sun8i-ce: handle different error registers
crypto: sun8i-ce: rename has_t_dlen_in_bytes to cipher_t_dlen_in_bytes
crypto: sun8i-ce: support hash algorithms
crypto: sun8i-ce: Add stat_bytes debugfs
crypto: sun8i-ce: Add support for the PRNG
crypto: sun8i-ce: Add support for the TRNG

 drivers/crypto/allwinner/Kconfig              |  26 ++
 drivers/crypto/allwinner/sun8i-ce/Makefile    |   3 +
 .../allwinner/sun8i-ce/sun8i-ce-cipher.c      |  99 ++++-
 .../crypto/allwinner/sun8i-ce/sun8i-ce-core.c | 365 ++++++++++++++-
 .../crypto/allwinner/sun8i-ce/sun8i-ce-hash.c | 415 ++++++++++++++++++
 .../crypto/allwinner/sun8i-ce/sun8i-ce-prng.c | 191 ++++++++
 .../crypto/allwinner/sun8i-ce/sun8i-ce-trng.c | 123 ++++++
 drivers/crypto/allwinner/sun8i-ce/sun8i-ce.h  | 135 +++++-
 include/crypto/rng.h                          |   5 +
 9 files changed, 1323 insertions(+), 39 deletions(-)
 create mode 100644 drivers/crypto/allwinner/sun8i-ce/sun8i-ce-hash.c
 create mode 100644 drivers/crypto/allwinner/sun8i-ce/sun8i-ce-prng.c
 create mode 100644 drivers/crypto/allwinner/sun8i-ce/sun8i-ce-trng.c
Signature · 7 lines
2.24.1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel