• Herbert Xu's avatar
    crypto: api - Add crypto_grab_spawn primitive · d6ef2f19
    Herbert Xu authored
    This patch adds a new primitive crypto_grab_spawn which is meant
    to replace crypto_init_spawn and crypto_init_spawn2.  Under the
    new scheme the user no longer has to worry about reference counting
    the alg object before it is subsumed by the spawn.
    
    It is pretty much an exact copy of crypto_grab_aead.
    
    Prior to calling this function spawn->frontend and spawn->inst
    must have been set.
    Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
    d6ef2f19
algapi.h 11 KB