diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2019-12-20 13:29:40 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2019-12-27 18:18:04 +0800 |
commit | e4f1d787e0ab800c1d0ad6c45e5df2ec3ad98fe1 (patch) | |
tree | a8aa2018c38333eb8226b7068dac85cc1ec2ec24 /crypto/camellia_generic.c | |
parent | bb4e37e1168a2bd0366de72f4cdfaf8846a72484 (diff) | |
download | linux-crypto-e4f1d787e0ab800c1d0ad6c45e5df2ec3ad98fe1.tar.gz linux-crypto-e4f1d787e0ab800c1d0ad6c45e5df2ec3ad98fe1.zip |
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>
Diffstat (limited to 'crypto/camellia_generic.c')
0 files changed, 0 insertions, 0 deletions