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
---
v2: no changes since v1
v3: drop
Andrew Zaborowski wrote:
>
> +static inline struct crypto_akcipher *crypto_spawn_akcipher(
> + struct crypto_akcipher_spawn *spawn)
> +{
> + return crypto_spawn_tfm2(&spawn->base);
> +}
> +
> +static inline void crypto_drop_akcipher(struct crypto_akcipher_spawn *spawn)
> +{
> +
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 crypto_spawn_tfm2(&spawn->base);
>> +}
>> +
>> +static inline