]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: aead - Add type-safe init/exit functions
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 28 May 2015 14:07:53 +0000 (22:07 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 3 Jun 2015 02:48:33 +0000 (10:48 +0800)
commit2a619ff252250cfc04602e6c263e50c950c3578a
tree10e5d26c2b95a199307219cd78838c5ab1fd251d
parente924d4d62e45b1dcecd5e2714b8da6a11876ff90
crypto: aead - Add type-safe init/exit functions

As it stands the only non-type safe functions left in the new
AEAD interface are the cra_init/cra_exit functions.  It means
exposing the ugly __crypto_aead_cast to every AEAD implementor.

This patch adds type-safe init/exit functions to AEAD.  Existing
algorithms are unaffected while new implementations can simply
fill in these two instead of cra_init/cra_exit.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/aead.c
include/crypto/aead.h