[PATCH] crypto/rng: double the entropy delay interval for retry
Gaurav Jain
gaurav.jain at nxp.com
Fri Sep 5 11:33:48 CEST 2025
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 retry.
Signed-off-by: Gaurav Jain <gaurav.jain at nxp.com>
---
drivers/crypto/fsl/jr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/crypto/fsl/jr.c b/drivers/crypto/fsl/jr.c
index 8f7a821ebf3..07d336c074a 100644
--- a/drivers/crypto/fsl/jr.c
+++ b/drivers/crypto/fsl/jr.c
@@ -642,7 +642,7 @@ static int rng_init(uint8_t sec_idx, ccsr_sec_t *sec)
*/
if (!inst_handles) {
kick_trng(ent_delay, sec);
- ent_delay += 400;
+ ent_delay = ent_delay * 2;
}
/*
* if instantiate_rng(...) fails, the loop will rerun
--
2.25.1
More information about the U-Boot
mailing list