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
2018-06-18 20:17:38 +05:30
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
2018-09-28 12:46:08 +08:00
2018-09-04 11:35:03 +08:00
2018-05-26 09:16:44 +02:00
2018-06-28 10:40:47 -07:00
2019-04-18 22:15:03 +08:00
2019-04-18 22:15:03 +08:00
2018-07-18 07:27:22 -04: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
2011-09-22 21:25:25 +10: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
2013-08-14 20:42:03 +10: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
2018-04-21 00:58:34 +08:00
2019-04-18 22:15:03 +08:00
2016-10-21 11:03:42 +08:00
2019-04-18 22:15:03 +08:00
2019-04-18 22:15:03 +08:00
2013-09-12 15:31:34 +10:00
2019-04-18 22:15:03 +08:00
2019-04-25 15:38:12 +08:00
2018-02-15 23:26:50 +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
2014-03-21 21:54:28 +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-08-03 18:06:06 +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
2017-10-12 22:55:00 +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
2017-12-22 19:52:40 +11: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
2018-09-04 11:37:04 +08:00
2019-04-18 22:15:03 +08:00
2015-06-25 23:18:33 +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
2013-12-09 20:09:12 +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-05-16 07:23:35 +02:00
2017-11-02 11:10:55 +01: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
2018-04-07 19:04:02 +09:00
2019-04-18 22:15:02 +08:00
2019-04-18 22:15:03 +08:00
2016-07-05 23:05:26 +08:00
2015-10-14 22:23:16 +08:00
2019-04-18 22:15:03 +08:00
2018-08-03 18:06: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
2018-09-28 12:46:26 +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
2017-11-29 17:33:25 +11: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
2017-11-15 18:21:04 -08:00
2019-05-06 20:15:06 -07:00
2019-04-18 22:15:03 +08:00