diff options
author | Martin Kaiser <martin@kaiser.cx> | 2020-03-05 23:58:21 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2020-03-12 15:00:15 +0300 |
commit | 3acd9ea9331cd56f9769d16211c865d4638fd12d (patch) | |
tree | cf0b1d3d6814a099a83683e717a0b753e431f2f8 /drivers/char/nwbutton.h | |
parent | 47a1f8e8b3637ff5f7806587883d7d94068d9ee8 (diff) | |
download | linux-3acd9ea9331cd56f9769d16211c865d4638fd12d.tar.xz |
hwrng: imx-rngc - use automatic seeding
The rngc requires a new seed for its prng after generating 2^20 160-bit
words of random data. At the moment, we seed the prng only once during
initalisation.
Set the rngc to auto seed mode so that it kicks off the internal
reseeding operation when a new seed is required.
Keep the manual calculation of the initial seed when the device is
probed and switch to automatic seeding afterwards.
Reviewed-by: PrasannaKumar Muralidharan <prasannatsmkumar@gmail.com>
Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/char/nwbutton.h')
0 files changed, 0 insertions, 0 deletions