Lines Matching refs:req
34 struct aead_givcrypt_request *req) in aead_givcrypt_reqtfm() argument
36 return crypto_aead_reqtfm(&req->areq); in aead_givcrypt_reqtfm()
39 static inline int crypto_aead_givencrypt(struct aead_givcrypt_request *req) in crypto_aead_givencrypt() argument
41 struct aead_tfm *crt = crypto_aead_crt(aead_givcrypt_reqtfm(req)); in crypto_aead_givencrypt()
42 return crt->givencrypt(req); in crypto_aead_givencrypt()
45 static inline int crypto_aead_givdecrypt(struct aead_givcrypt_request *req) in crypto_aead_givdecrypt() argument
47 struct aead_tfm *crt = crypto_aead_crt(aead_givcrypt_reqtfm(req)); in crypto_aead_givdecrypt()
48 return crt->givdecrypt(req); in crypto_aead_givdecrypt()
51 static inline void aead_givcrypt_set_tfm(struct aead_givcrypt_request *req, in aead_givcrypt_set_tfm() argument
54 req->areq.base.tfm = crypto_aead_tfm(tfm); in aead_givcrypt_set_tfm()
60 struct aead_givcrypt_request *req; in aead_givcrypt_alloc() local
62 req = kmalloc(sizeof(struct aead_givcrypt_request) + in aead_givcrypt_alloc()
65 if (likely(req)) in aead_givcrypt_alloc()
66 aead_givcrypt_set_tfm(req, tfm); in aead_givcrypt_alloc()
68 return req; in aead_givcrypt_alloc()
71 static inline void aead_givcrypt_free(struct aead_givcrypt_request *req) in aead_givcrypt_free() argument
73 kfree(req); in aead_givcrypt_free()
77 struct aead_givcrypt_request *req, u32 flags, in aead_givcrypt_set_callback() argument
80 aead_request_set_callback(&req->areq, flags, compl, data); in aead_givcrypt_set_callback()
83 static inline void aead_givcrypt_set_crypt(struct aead_givcrypt_request *req, in aead_givcrypt_set_crypt() argument
88 aead_request_set_crypt(&req->areq, src, dst, nbytes, iv); in aead_givcrypt_set_crypt()
91 static inline void aead_givcrypt_set_assoc(struct aead_givcrypt_request *req, in aead_givcrypt_set_assoc() argument
95 aead_request_set_assoc(&req->areq, assoc, assoclen); in aead_givcrypt_set_assoc()
98 static inline void aead_givcrypt_set_giv(struct aead_givcrypt_request *req, in aead_givcrypt_set_giv() argument
101 req->giv = giv; in aead_givcrypt_set_giv()
102 req->seq = seq; in aead_givcrypt_set_giv()