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>
Showing
- crypto/ablkcipher.c 2 additions, 2 deletionscrypto/ablkcipher.c
- crypto/aead.c 2 additions, 2 deletionscrypto/aead.c
- crypto/crypto_user.c 71 additions, 1 deletioncrypto/crypto_user.c
- include/crypto/internal/aead.h 2 additions, 0 deletionsinclude/crypto/internal/aead.h
- include/crypto/internal/skcipher.h 2 additions, 0 deletionsinclude/crypto/internal/skcipher.h
Please register or sign in to comment