summaryrefslogtreecommitdiff
path: root/crypto/algif_skcipher.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2015-06-21 14:11:46 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2015-06-22 10:49:28 +0300
commit341476d6cf224f1dea5c439cd70181053629ce15 (patch)
tree23976bbcaf26202ea1082567bd4d402e7ba1c3eb /crypto/algif_skcipher.c
parent9aa867e46565d61491f884c793e4988678fbffa3 (diff)
downloadlinux-341476d6cf224f1dea5c439cd70181053629ce15.tar.xz
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/algif_skcipher.c')
0 files changed, 0 insertions, 0 deletions