2 * Software async crypto daemon
5 #ifndef _CRYPTO_CRYPT_H
6 #define _CRYPTO_CRYPT_H
8 #include <linux/crypto.h>
9 #include <linux/kernel.h>
11 struct cryptd_ablkcipher
{
12 struct crypto_ablkcipher base
;
15 static inline struct cryptd_ablkcipher
*__cryptd_ablkcipher_cast(
16 struct crypto_ablkcipher
*tfm
)
18 return (struct cryptd_ablkcipher
*)tfm
;
21 /* alg_name should be algorithm to be cryptd-ed */
22 struct cryptd_ablkcipher
*cryptd_alloc_ablkcipher(const char *alg_name
,
24 struct crypto_blkcipher
*cryptd_ablkcipher_child(struct cryptd_ablkcipher
*tfm
);
25 void cryptd_free_ablkcipher(struct cryptd_ablkcipher
*tfm
);