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