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

crypto: api - Add crypto_grab_spawn primitive


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>
parent 6499e8cf
No related branches found
No related tags found
Loading
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