• Herbert Xu's avatar
    crypto: skcipher - Add skcipher_ialg_simple helper · b3c16bfc
    Herbert Xu authored
    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>
    b3c16bfc
pcbc.c 4.65 KB