13 #ifndef _CRYPTO_AEAD_H
14 #define _CRYPTO_AEAD_H
17 #include <linux/kernel.h>
18 #include <linux/slab.h>
33 static inline struct crypto_aead *aead_givcrypt_reqtfm(
36 return crypto_aead_reqtfm(&req->
areq);
41 struct aead_tfm *crt = crypto_aead_crt(aead_givcrypt_reqtfm(req));
47 struct aead_tfm *crt = crypto_aead_crt(aead_givcrypt_reqtfm(req));
54 req->
areq.base.tfm = crypto_aead_tfm(tfm);
63 crypto_aead_reqsize(tfm), gfp);
66 aead_givcrypt_set_tfm(req, tfm);
76 static inline void aead_givcrypt_set_callback(
80 aead_request_set_callback(&req->
areq, flags, complete, data);
88 aead_request_set_crypt(&req->
areq, src, dst, nbytes, iv);
93 unsigned int assoclen)
95 aead_request_set_assoc(&req->
areq, assoc, assoclen);