Lines Matching refs:req
93 int (*sign)(struct akcipher_request *req);
94 int (*verify)(struct akcipher_request *req);
95 int (*encrypt)(struct akcipher_request *req);
96 int (*decrypt)(struct akcipher_request *req);
161 static inline void akcipher_request_set_tfm(struct akcipher_request *req, in akcipher_request_set_tfm() argument
164 req->base.tfm = crypto_akcipher_tfm(tfm); in akcipher_request_set_tfm()
168 struct akcipher_request *req) in crypto_akcipher_reqtfm() argument
170 return __crypto_akcipher_tfm(req->base.tfm); in crypto_akcipher_reqtfm()
194 struct akcipher_request *req; in akcipher_request_alloc() local
196 req = kmalloc(sizeof(*req) + crypto_akcipher_reqsize(tfm), gfp); in akcipher_request_alloc()
197 if (likely(req)) in akcipher_request_alloc()
198 akcipher_request_set_tfm(req, tfm); in akcipher_request_alloc()
200 return req; in akcipher_request_alloc()
208 static inline void akcipher_request_free(struct akcipher_request *req) in akcipher_request_free() argument
210 kzfree(req); in akcipher_request_free()
224 static inline void akcipher_request_set_callback(struct akcipher_request *req, in akcipher_request_set_callback() argument
229 req->base.complete = cmpl; in akcipher_request_set_callback()
230 req->base.data = data; in akcipher_request_set_callback()
231 req->base.flags = flgs; in akcipher_request_set_callback()
245 static inline void akcipher_request_set_crypt(struct akcipher_request *req, in akcipher_request_set_crypt() argument
251 req->src = src; in akcipher_request_set_crypt()
252 req->dst = dst; in akcipher_request_set_crypt()
253 req->src_len = src_len; in akcipher_request_set_crypt()
254 req->dst_len = dst_len; in akcipher_request_set_crypt()
283 static inline int crypto_akcipher_encrypt(struct akcipher_request *req) in crypto_akcipher_encrypt() argument
285 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in crypto_akcipher_encrypt()
288 return alg->encrypt(req); in crypto_akcipher_encrypt()
301 static inline int crypto_akcipher_decrypt(struct akcipher_request *req) in crypto_akcipher_decrypt() argument
303 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in crypto_akcipher_decrypt()
306 return alg->decrypt(req); in crypto_akcipher_decrypt()
319 static inline int crypto_akcipher_sign(struct akcipher_request *req) in crypto_akcipher_sign() argument
321 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in crypto_akcipher_sign()
324 return alg->sign(req); in crypto_akcipher_sign()
337 static inline int crypto_akcipher_verify(struct akcipher_request *req) in crypto_akcipher_verify() argument
339 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in crypto_akcipher_verify()
342 return alg->verify(req); in crypto_akcipher_verify()