Skip to content

crypto: Use drbg CTR DF function in xilinx-trng

Harsh Jain linux-crypto 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3crypto: drbg: Export CTR DRBG DF functionscrypto/Kconfig crypto/Makefile crypto/df_sp80090a.c +5 more+343 -2650 replies
2/3crypto: drbg: Replace AES cipher calls with library callscrypto/df_sp80090a.c crypto/drbg.c include/crypto/df_sp80090a.h+25 -280 replies
3/3crypto: xilinx-trng: Add CTR_DRBG DF processing of seeddrivers/crypto/xilinx/xilinx-trng.c+31 -60 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/3] crypto: Use drbg CTR DF function in xilinx-trng

Export CTR DRBG DF function available in drbg module to use it in xilinx-trng driver.

Testing

Compile tests done

* CONFIG_CRYPTO_DRBG_CTR = n and CONFIG_CRYPTO_DEV_XILINX_TRNG = n
* CONFIG_CRYPTO_DRBG_CTR = y and CONFIG_CRYPTO_DEV_XILINX_TRNG = n
* CONFIG_CRYPTO_DRBG_CTR = n and CONFIG_CRYPTO_DEV_XILINX_TRNG = m
* CONFIG_CRYPTO_DRBG_CTR = y and CONFIG_CRYPTO_DEV_XILINX_TRNG = m

Runtime testing
* Boot with CONFIG_CRYPTO_USER_API_RNG_CAVP and CONFIG_CRYPTO_DRBG_CTR enabled.
* Run kcapi-rng -b <15, 16, 17, 31, 32, 33> --hex

Harsh Jain (3):
crypto: drbg: Export CTR DRBG DF functions
crypto: drbg: Replace AES cipher calls with library calls
crypto: xilinx-trng: Add CTR_DRBG DF processing of seed

 crypto/Kconfig                      |   8 +-
 crypto/Makefile                     |   2 +
 crypto/df_sp80090a.c                | 248 ++++++++++++++++++++++++++
 crypto/drbg.c                       | 265 ++--------------------------
 drivers/crypto/Kconfig              |   1 +
 drivers/crypto/xilinx/xilinx-trng.c |  37 +++-
 include/crypto/df_sp80090a.h        |  28 +++
 include/crypto/drbg.h               |  25 +--
 include/crypto/internal/drbg.h      |  54 ++++++
 9 files changed, 384 insertions(+), 284 deletions(-)
 create mode 100644 crypto/df_sp80090a.c
 create mode 100644 include/crypto/df_sp80090a.h
 create mode 100644 include/crypto/internal/drbg.h
Signature · 1 line
2.34.1