aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/mpi/mpi-mod.c
diff options
context:
space:
mode:
authorAurelien Jarno <[email protected]>2024-07-30 16:11:04 +0000
committerHerbert Xu <[email protected]>2024-08-10 04:25:34 +0000
commitdcf4fef6631c302f9bdd188979fe3172e47a29c7 (patch)
tree2cde68b94866e7ea5993bf0380aa54b929c5eece /lib/crypto/mpi/mpi-mod.c
parentdt-bindings: rng: Add Rockchip RK3568 TRNG (diff)
downloadkernel-dcf4fef6631c302f9bdd188979fe3172e47a29c7.tar.gz
kernel-dcf4fef6631c302f9bdd188979fe3172e47a29c7.zip
hwrng: rockchip - add hwrng driver for Rockchip RK3568 SoC
Rockchip SoCs used to have a random number generator as part of their crypto device, and support for it has to be added to the corresponding driver. However newer Rockchip SoCs like the RK3568 have an independent True Random Number Generator device. This patch adds a driver for it, greatly inspired from the downstream driver. The TRNG device does not seem to have a signal conditionner and the FIPS 140-2 test returns a lot of failures. They can be reduced by increasing RK_RNG_SAMPLE_CNT, in a tradeoff between quality and speed. This value has been adjusted to get ~90% of successes and the quality value has been set accordingly. Signed-off-by: Aurelien Jarno <[email protected]> [[email protected]: code style fixes] Signed-off-by: Daniel Golle <[email protected]> Acked-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpi-mod.c')
0 files changed, 0 insertions, 0 deletions