]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: eseqiv - Move IV seeding into init function
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 3 Jun 2015 06:49:25 +0000 (14:49 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 4 Jun 2015 07:05:00 +0000 (15:05 +0800)
commit43dd61f008c7aed46a6d60bacd9238130efe6514
treee1cd75434bde06edd207b743772060abdbf9025b
parent87b6f5af1f85f8d99bf3a85fac7102fe613649dd
crypto: eseqiv - 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/eseqiv.c