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

2015-12-05 Thread Andrzej Zaborowski
Hi Herbert, On 4 December 2015 at 15:28, Herbert Xu wrote: > Andrew Zaborowski wrote: >> >> +static inline struct crypto_akcipher *crypto_spawn_akcipher( >> + struct crypto_akcipher_spawn *spawn) >> +{ >> + return

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

2015-12-04 Thread Herbert Xu
Andrew Zaborowski wrote: > > +static inline struct crypto_akcipher *crypto_spawn_akcipher( > + struct crypto_akcipher_spawn *spawn) > +{ > + return crypto_spawn_tfm2(>base); > +} > + > +static inline void crypto_drop_akcipher(struct

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

2015-11-29 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 ---