Stephan Mueller
db07cd26ac
crypto: drbg - add FIPS 140-2 CTRNG for noise source
...
FIPS 140-2 section 4.9.2 requires a continuous self test of the noise
source. Up to kernel 4.8 drivers/char/random.c provided this continuous
self test. Afterwards it was moved to a location that is inconsistent
with the FIPS 140-2 requirements. The relevant patch was
e192be9d9a .
Thus, the FIPS 140-2 CTRNG is added to the DRBG when it obtains the
seed. This patch resurrects the function drbg_fips_continous_test that
existed some time ago and applies it to the noise sources. The patch
that removed the drbg_fips_continous_test was
b361476305 .
The Jitter RNG implements its own FIPS 140-2 self test and thus does not
need to be subjected to the test in the DRBG.
The patch contains a tiny fix to ensure proper zeroization in case of an
error during the Jitter RNG data gathering.
Signed-off-by: Stephan Mueller <smueller@chronox.de >
Reviewed-by: Yann Droneaud <ydroneaud@opteya.com >
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au >
2019-05-23 14:01:06 +08:00
..
2019-04-25 15:38:12 +08:00
2019-04-18 22:15:03 +08:00
2018-12-23 11:52:45 +08:00
2018-11-09 17:41:39 +08:00
2019-04-25 15:38:12 +08:00
2019-01-18 18:40:24 +08:00
2019-04-18 22:15:03 +08:00
2019-04-18 22:15:03 +08:00
2019-04-18 22:15:03 +08:00
2019-01-25 18:41:51 +08:00
2019-04-18 22:15:03 +08:00
2018-11-09 17:36:48 +08:00
2019-03-05 09:09:55 -08:00
2019-02-08 15:30:08 +08:00
2019-04-18 22:15:01 +08:00
2019-01-25 18:41:52 +08:00
2019-04-18 22:15:03 +08:00
2019-04-18 22:15:03 +08:00
2019-04-18 22:15:03 +08:00
2019-04-18 22:15:03 +08:00
2019-04-18 22:15:03 +08:00
2019-04-18 22:15:03 +08:00
2018-12-23 11:52:45 +08:00
2019-04-18 22:15:03 +08:00
2019-04-18 22:15:03 +08:00
2019-04-18 22:15:03 +08:00
2019-04-18 22:15:03 +08:00
2019-04-18 22:15:03 +08:00
2019-04-19 13:53:13 +08:00
2019-04-18 22:15:03 +08:00
2019-04-18 22:15:03 +08:00
2019-04-18 22:15:03 +08:00
2019-04-18 22:15:03 +08:00
2019-04-18 22:15:03 +08:00
2019-04-18 22:15:03 +08:00
2019-04-18 22:15:03 +08:00
2019-04-25 15:38:12 +08:00
2019-04-18 22:15:03 +08:00
2019-04-27 17:07:21 -04:00
2019-01-18 18:43:43 +08:00
2019-04-18 22:15:03 +08:00
2019-04-18 22:15:03 +08:00
2019-04-18 22:15:03 +08:00
2019-04-18 22:15:03 +08:00
2019-04-18 22:15:03 +08:00
2019-05-23 14:01:06 +08:00
2019-04-18 22:15:03 +08:00
2019-04-18 22:15:02 +08:00
2019-04-18 22:15:02 +08:00
2019-04-18 22:15:02 +08:00
2019-04-18 22:15:03 +08:00
2019-04-18 22:15:03 +08:00
2019-04-18 22:15:02 +08:00
2019-04-18 22:15:02 +08:00
2019-04-18 22:15:02 +08:00
2019-04-18 22:15:02 +08:00
2019-04-18 22:15:03 +08:00
2019-04-18 22:15:03 +08:00
2019-04-19 13:53:13 +08:00
2019-04-18 22:15:03 +08:00
2018-11-16 14:09:40 +08:00
2019-04-25 15:38:12 +08:00
2019-04-18 22:15:03 +08:00
2019-04-25 15:40:39 +08:00
2019-04-18 22:15:03 +08:00
2019-04-18 22:15:03 +08:00
2018-11-09 17:41:39 +08:00
2019-05-06 20:15:06 -07:00
2019-04-18 22:15:03 +08:00
2019-04-18 22:15:03 +08:00
2019-04-18 22:15:03 +08:00
2019-04-18 22:15:03 +08:00
2019-04-18 22:15:02 +08:00
2019-04-18 22:15:03 +08:00
2019-04-18 22:15:03 +08:00
2019-04-18 22:15:03 +08:00
2019-04-18 22:15:03 +08:00
2019-04-18 22:15:03 +08:00
2019-04-18 22:15:03 +08:00
2019-04-18 22:15:03 +08:00
2019-04-18 22:15:03 +08:00
2019-04-18 22:15:03 +08:00
2019-04-18 22:15:03 +08:00
2019-04-18 22:15:03 +08:00
2019-04-18 22:15:03 +08:00
2019-04-18 22:15:03 +08:00
2019-04-18 22:15:03 +08:00
2018-12-07 14:15:00 +08:00
2019-04-18 22:15:02 +08:00
2019-04-18 22:15:03 +08:00
2019-04-18 22:15:03 +08:00
2019-04-18 22:15:04 +08:00
2019-04-18 22:15:03 +08:00
2019-04-18 22:15:03 +08:00
2019-04-18 22:15:03 +08:00
2019-04-18 22:15:03 +08:00
2019-04-18 22:15:03 +08:00
2019-04-18 22:15:03 +08:00
2019-04-18 22:15:03 +08:00
2019-04-25 15:38:12 +08:00
2019-03-22 20:57:27 +08:00
2019-04-08 14:42:55 +08:00
2019-04-18 22:15:03 +08:00
2019-04-18 22:15:03 +08:00
2019-04-18 22:15:03 +08:00
2019-04-18 22:15:03 +08:00
2019-04-18 22:15:03 +08:00
2019-04-25 15:38:13 +08:00
2019-05-06 20:15:06 -07:00
2019-04-18 22:15:03 +08:00
2019-04-18 22:15:03 +08:00
2019-04-18 22:15:03 +08:00
2019-04-18 22:15:03 +08:00
2019-04-18 22:15:03 +08:00
2019-05-06 20:15:06 -07:00
2019-04-18 22:15:03 +08:00