summaryrefslogtreecommitdiff
path: root/crypto/seed.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2015-06-21 19:11:46 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2015-06-22 15:49:28 +0800
commite0058ad2114f29fa95a18f198be6e3a317f37373 (patch)
tree4ba9be5f0e118247c95ae034f48337051ada2bcd /crypto/seed.c
parent95c2e811146e72099a47932a832a0ab9a553ec8a (diff)
downloadlinux-crypto-e0058ad2114f29fa95a18f198be6e3a317f37373.tar.gz
linux-crypto-e0058ad2114f29fa95a18f198be6e3a317f37373.zip
crypto: chainiv - Offer normal cipher functionality without RNG
The RNG may not be available during early boot, e.g., the relevant modules may not be included in the initramfs. As the RNG Is only needed for IPsec, we should not let this prevent use of ciphers without IV generators, e.g., for disk encryption. This patch postpones the RNG allocation to the init function so that one failure during early boot does not make the RNG unavailable for all subsequent users of the same cipher. More importantly, it lets the cipher live even if RNG allocation fails. Of course we no longer offer IV generation and which will fail with an error if invoked. But all other cipher capabilities will function as usual. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/seed.c')
0 files changed, 0 insertions, 0 deletions