crypto: Use drbg CTR DF function in xilinx-trng
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | crypto: drbg: Export CTR DRBG DF functionscrypto/ crypto/ crypto/ +5 more | +343 | 0 replies | |
| 2/3 | crypto: drbg: Replace AES cipher calls with library callscrypto/ crypto/ include/ | +25 | 0 replies | |
| 3/3 | crypto: xilinx-trng: Add CTR_DRBG DF processing of seeddrivers/ | +31 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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