]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: chainiv - Move IV seeding into init function
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 3 Jun 2015 06:49:23 +0000 (14:49 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 4 Jun 2015 07:04:59 +0000 (15:04 +0800)
commit01c4b6b806149ac3b370016a18cab1eeb411b023
tree2479627ae9dc0dae8edaf8027d7a8e33279f2b23
parent70bc07840e9ffbf389e5b82cd746d08c909a1ed4
crypto: chainiv - Move IV seeding into init function

We currently do the IV seeding on the first givencrypt call in
order to conserve entropy.  However, this does not work with
DRBG which cannot be called from interrupt context.  In fact,
with DRBG we don't need to conserve entropy anyway.  So this
patch moves the seeding into the init function.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/chainiv.c