crypto: seqiv - Add compatibility support without RNG
authorHerbert Xu <herbert@gondor.apana.org.au>
Sun, 21 Jun 2015 11:11:49 +0000 (19:11 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 22 Jun 2015 07:49:28 +0000 (15:49 +0800)
commiteeee12aa34d840c6c99051f0ff85a9ffa1badd07
treeecb6931eb545524be8bdfacbaed8a8bf8d7908db
parent055906d1e7f94f459a0e80228f15656bf5871311
crypto: seqiv - Add compatibility support without RNG

When seqiv is used in compatibility mode, this patch allows it
to function even when an RNG Is not available.  It also changes
the RNG allocation for the new explicit seqiv interface so that
we only hold a reference to the RNG during initialisation.

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