
11 Sep
2023
11 Sep
'23
11:54 a.m.
Hi,
On 9/7/23 18:21, Gatien Chevallier wrote:
Seed errors can occur when using the hardware RNG. Implement the sequences to handle them. This avoids irrecoverable RNG state.
Try to conceal seed errors when possible. If, despite the error concealing tries, a seed error is still present, then return an error.
A clock error does not compromise the hardware block and data can still be read from RNG_DR. Just warn that the RNG clock is too slow and clear RNG_SR.
Signed-off-by: Gatien Chevallier gatien.chevallier@foss.st.com
drivers/rng/stm32_rng.c | 163 ++++++++++++++++++++++++++++++++++------ 1 file changed, 140 insertions(+), 23 deletions(-)
Reviewed-by: Patrick Delaunay patrick.delaunay@foss.st.com
Thanks Patrick