Lines Matching refs:aead_req

187 	struct aead_request *aead_req = data;  in tls_decrypt_done()  local
188 struct crypto_aead *aead = crypto_aead_reqtfm(aead_req); in tls_decrypt_done()
189 struct scatterlist *sgout = aead_req->dst; in tls_decrypt_done()
190 struct scatterlist *sgin = aead_req->src; in tls_decrypt_done()
199 aead_size = sizeof(*aead_req) + crypto_aead_reqsize(aead); in tls_decrypt_done()
201 dctx = (void *)((u8 *)aead_req + aead_size); in tls_decrypt_done()
225 kfree(aead_req); in tls_decrypt_done()
238 struct aead_request *aead_req, in tls_do_decryption() argument
246 aead_request_set_tfm(aead_req, ctx->aead_recv); in tls_do_decryption()
247 aead_request_set_ad(aead_req, prot->aad_size); in tls_do_decryption()
248 aead_request_set_crypt(aead_req, sgin, sgout, in tls_do_decryption()
253 aead_request_set_callback(aead_req, in tls_do_decryption()
255 tls_decrypt_done, aead_req); in tls_do_decryption()
258 aead_request_set_callback(aead_req, in tls_do_decryption()
263 ret = crypto_aead_decrypt(aead_req); in tls_do_decryption()
501 struct aead_request *aead_req, in tls_do_encryption() argument
533 aead_request_set_tfm(aead_req, ctx->aead_send); in tls_do_encryption()
534 aead_request_set_ad(aead_req, prot->aad_size); in tls_do_encryption()
535 aead_request_set_crypt(aead_req, rec->sg_aead_in, in tls_do_encryption()
539 aead_request_set_callback(aead_req, CRYPTO_TFM_REQ_MAY_BACKLOG, in tls_do_encryption()
546 rc = crypto_aead_encrypt(aead_req); in tls_do_encryption()
736 req = &rec->aead_req; in tls_push_record()
1452 struct aead_request *aead_req; in tls_decrypt_sg() local
1492 aead_size = sizeof(*aead_req) + crypto_aead_reqsize(ctx->aead_recv); in tls_decrypt_sg()
1502 aead_req = (struct aead_request *)mem; in tls_decrypt_sg()
1578 data_len + prot->tail_size, aead_req, darg); in tls_decrypt_sg()