]> git.baikalelectronics.ru Git - kernel.git/commit
[CRYPTO] skcipher: Create default givcipher instances
authorHerbert Xu <herbert@gondor.apana.org.au>
Tue, 4 Dec 2007 01:46:48 +0000 (12:46 +1100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 10 Jan 2008 21:16:46 +0000 (08:16 +1100)
commitea6e74cb0870d67414d5e17bfb396bfa7df5cab1
tree74e011e9b95291f230d6e7200730e3bc3b9d7153
parent1dc5dd1e4dfddea6caf9337baf34ec995bc7557e
[CRYPTO] skcipher: Create default givcipher instances

This patch makes crypto_alloc_ablkcipher/crypto_grab_skcipher always
return algorithms that are capable of generating their own IVs through
givencrypt and givdecrypt.  Each algorithm may specify its default IV
generator through the geniv field.

For algorithms that do not set the geniv field, the blkcipher layer will
pick a default.  Currently it's chainiv for synchronous algorithms and
eseqiv for asynchronous algorithms.  Note that if these wrappers do not
work on an algorithm then that algorithm must specify its own geniv or
it can't be used at all.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/ablkcipher.c
crypto/api.c
crypto/blkcipher.c
crypto/internal.h
include/crypto/internal/skcipher.h
include/linux/crypto.h