diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2023-03-28 11:35:23 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2023-04-06 16:18:53 +0800 |
commit | 686cd976b6ddedeeb1a1fb09ba53a891d3cc9a03 (patch) | |
tree | 1c984fde1876309b1f129c940f15a7a7bcd9185f /crypto/algif_hash.c | |
parent | 3fde2fe99aa6dacd4151c87382b07ce7f30f0a52 (diff) | |
download | linux-rpi-686cd976b6ddedeeb1a1fb09ba53a891d3cc9a03.tar.gz linux-rpi-686cd976b6ddedeeb1a1fb09ba53a891d3cc9a03.tar.bz2 linux-rpi-686cd976b6ddedeeb1a1fb09ba53a891d3cc9a03.zip |
crypto: drbg - Only fail when jent is unavailable in FIPS mode
When jent initialisation fails for any reason other than ENOENT,
the entire drbg fails to initialise, even when we're not in FIPS
mode. This is wrong because we can still use the kernel RNG when
we're not in FIPS mode.
Change it so that it only fails when we are in FIPS mode.
Fixes: 57225e679788 ("crypto: drbg - Use callback API for random readiness")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Reviewed-by: Stephan Mueller <smueller@chronox.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/algif_hash.c')
0 files changed, 0 insertions, 0 deletions