crypto: user - Fix lookup of algorithms with IV generator
authorSteffen Klassert <steffen.klassert@secunet.com>
Thu, 29 Mar 2012 07:03:47 +0000 (09:03 +0200)
committerVarun Wadekar <vwadekar@nvidia.com>
Wed, 18 Apr 2012 12:59:00 +0000 (17:59 +0530)
commit509a1a54f5ee2d5284f3fac3a13d675218f5e9b3
treec173faaad26af9ea0c4a7ff42a3b9beb24f5743b
parente48eeba8fdfd47dbd8b48f4df003b7eb11d2ba90
crypto: user - Fix lookup of algorithms with IV generator

We lookup algorithms with crypto_alg_mod_lookup() when instantiating via
crypto_add_alg(). However, algorithms that are wrapped by an IV genearator
(e.g. aead or genicv type algorithms) need special care. The userspace
process hangs until it gets a timeout when we use crypto_alg_mod_lookup()
to lookup these algorithms. So export the lookup functions for these
algorithms and use them in crypto_add_alg().

Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/ablkcipher.c
crypto/aead.c
crypto/crypto_user.c
include/crypto/internal/aead.h
include/crypto/internal/skcipher.h