commit | 5eb8ec6dc857d5027bc8cf7268a199107a583ae5 | [log] [tgz] |
---|---|---|
author | Herbert Xu <herbert@gondor.apana.org.au> | Thu May 28 22:07:53 2015 +0800 |
committer | Herbert Xu <herbert@gondor.apana.org.au> | Wed Jun 03 10:48:33 2015 +0800 |
tree | 10e5d26c2b95a199307219cd78838c5ab1fd251d | |
parent | addfda2fc2ed2fcd7896ef689aa75a7d35a7579b [diff] |
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>