Re: [PATCH v5 3/4] crypto: akcipher: add akcipher declarations needed by templates.

2015-11-27 Thread Herbert Xu
Andrew Zaborowski wrote: > > @@ -75,9 +76,22 @@ static int crypto_akcipher_init_tfm(struct crypto_tfm *tfm) >return 0; > } > > +static void crypto_akcipher_free_instance(struct crypto_instance *inst) > +{ > + struct akcipher_instance *akcipher =

[PATCH v5 3/4] crypto: akcipher: add akcipher declarations needed by templates.

2015-11-26 Thread Andrew Zaborowski
Add a struct akcipher_instance and struct akcipher_spawn similar to how AEAD declares them and the macros for converting to/from crypto_instance/crypto_spawn. Also add register functions to avoid exposing crypto_akcipher_type. Signed-off-by: Andrew Zaborowski ---