crypto: skcipher - Add skcipher_ialg_simple helper
This patch introduces the skcipher_ialg_simple helper which fetches
the crypto_alg structure from a simple skcipher instance's spawn.
This allows us to remove the third argument from the function
skcipher_alloc_instance_simple.
In doing so the reference count to the algorithm is now maintained
by the Crypto API and the caller no longer needs to drop the alg
refcount.
Signed-off-by:
Herbert Xu <herbert@gondor.apana.org.au>
Showing
- crypto/cbc.c 7 additions, 8 deletionscrypto/cbc.c
- crypto/cfb.c 3 additions, 2 deletionscrypto/cfb.c
- crypto/ctr.c 7 additions, 8 deletionscrypto/ctr.c
- crypto/ecb.c 2 additions, 3 deletionscrypto/ecb.c
- crypto/keywrap.c 7 additions, 8 deletionscrypto/keywrap.c
- crypto/ofb.c 3 additions, 2 deletionscrypto/ofb.c
- crypto/pcbc.c 2 additions, 3 deletionscrypto/pcbc.c
- crypto/skcipher.c 3 additions, 6 deletionscrypto/skcipher.c
- include/crypto/internal/skcipher.h 11 additions, 3 deletionsinclude/crypto/internal/skcipher.h
Loading
Please register or sign in to comment