]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: api - Add crypto_grab_spawn primitive
authorHerbert Xu <herbert@gondor.apana.org.au>
Mon, 11 May 2015 09:47:39 +0000 (17:47 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 13 May 2015 02:31:25 +0000 (10:31 +0800)
commit4266c2b3908bdccc2c9e28e381a55a209bba6f0b
tree4926330410a3ab29a0e2802120d4be77d7175b9f
parent58dbb3561b785ea86a150b2ee54e12b19f8feb27
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: Herbert Xu <herbert@gondor.apana.org.au>
crypto/algapi.c
include/crypto/algapi.h