Skip to content
Snippets Groups Projects
Commit b3c16bfc authored by Herbert Xu's avatar Herbert Xu
Browse files

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: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 93e23eb2
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment