]> Gentwo Git Trees - linux/.git/commit
crypto: caam - double the entropy delay interval for retry
authorGaurav Jain <gaurav.jain@nxp.com>
Fri, 5 Sep 2025 10:11:48 +0000 (15:41 +0530)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 13 Sep 2025 04:11:06 +0000 (12:11 +0800)
commit9048beca9c5614d486e2b492c0a7867164bf56a8
treed751b3ed8ef8b0ea607a6f227ff3b3cbf921fac4
parent4fcd322914068f2c6aec7bb5cfd12ce0207b3a21
crypto: caam - double the entropy delay interval for retry

during entropy evaluation, if the generated samples fail
any statistical test, then, all of the bits will be discarded,
and a second set of samples will be generated and tested.

the entropy delay interval should be doubled before performing the
retry.

also, ctrlpriv->rng4_sh_init and inst_handles both reads RNG DRNG
status register, but only inst_handles is updated before every retry.
so only check inst_handles and removing ctrlpriv->rng4_sh_init

Signed-off-by: Gaurav Jain <gaurav.jain@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/ctrl.c