From: Harsh Jain <h.jain@amd.com>
To: <herbert@gondor.apana.org.au>, <davem@davemloft.net>,
<linux-crypto@vger.kernel.org>, <devicetree@vger.kernel.org>,
<mounika.botcha@amd.com>, <sarat.chand.savitala@amd.com>,
<mohan.dhanawade@amd.com>, <michal.simek@amd.com>,
<smueller@chronox.de>, <robh@kernel.org>, <krzk+dt@kernel.org>,
<conor+dt@kernel.org>
Cc: Harsh Jain <h.jain@amd.com>
Subject: [PATCH v4 0/3] crypto: Add Versal TRNG driver
Date: Wed, 23 Jul 2025 23:51:07 +0530 [thread overview]
Message-ID: <20250723182110.249547-1-h.jain@amd.com> (raw)
Versal TRNG module consist of array of Ring Oscillators as entropy source
and a deterministic CTR_DRBG random bit generator (DRBG). Add driver to
registers entropy source to hwrng and CTR_DRBG generator to crypto subsystem.
Derivation Function (DF) defined in NIST SP-800-90A for CTR_DRBG is not
supported in current TRNG IP. For DF processing, Update drbg module to
export CTR_DRBG derivation function in df_sp80090a module.
Testing
Following 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
Changes in v4
- Add df_sp80090a module to export CTR_DRBG DF function
Changes in v3
- Fix yaml warning introduced in v2.
- Squash fix patches
Changes in v2
- Fixed signoff chain
- Added 3 patch to fix Kernel test robot bugs
Harsh Jain (2):
crypto: xilinx: Add TRNG driver for Versal
crypto: drbg: Export CTR DRBG DF functions
Mounika Botcha (1):
dt-bindings: crypto: Add node for True Random Number Generator
.../bindings/crypto/xlnx,versal-trng.yaml | 36 ++
MAINTAINERS | 6 +
crypto/Kconfig | 8 +-
crypto/Makefile | 2 +
crypto/df_sp80090a.c | 243 ++++++++++
crypto/drbg.c | 244 +---------
drivers/crypto/Kconfig | 13 +
drivers/crypto/xilinx/Makefile | 1 +
drivers/crypto/xilinx/xilinx-trng.c | 434 ++++++++++++++++++
include/crypto/df_sp80090a.h | 27 ++
include/crypto/drbg.h | 18 +
11 files changed, 791 insertions(+), 241 deletions(-)
create mode 100644 Documentation/devicetree/bindings/crypto/xlnx,versal-trng.yaml
create mode 100644 crypto/df_sp80090a.c
create mode 100644 drivers/crypto/xilinx/xilinx-trng.c
create mode 100644 include/crypto/df_sp80090a.h
--
2.34.1
next reply other threads:[~2025-07-23 18:22 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-23 18:21 Harsh Jain [this message]
2025-07-23 18:21 ` [PATCH v4 1/3] dt-bindings: crypto: Add node for True Random Number Generator Harsh Jain
2025-07-24 7:21 ` Krzysztof Kozlowski
2025-07-24 8:04 ` Jain, Harsh (AECG-SSW)
2025-07-24 8:08 ` Krzysztof Kozlowski
2025-07-24 9:22 ` Jain, Harsh (AECG-SSW)
2025-07-23 18:21 ` [PATCH v4 2/3] crypto: xilinx: Add TRNG driver for Versal Harsh Jain
2025-07-23 18:21 ` [PATCH v4 3/3] crypto: drbg: Export CTR DRBG DF functions Harsh Jain
2025-08-16 8:44 ` Herbert Xu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250723182110.249547-1-h.jain@amd.com \
--to=h.jain@amd.com \
--cc=conor+dt@kernel.org \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=herbert@gondor.apana.org.au \
--cc=krzk+dt@kernel.org \
--cc=linux-crypto@vger.kernel.org \
--cc=michal.simek@amd.com \
--cc=mohan.dhanawade@amd.com \
--cc=mounika.botcha@amd.com \
--cc=robh@kernel.org \
--cc=sarat.chand.savitala@amd.com \
--cc=smueller@chronox.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox