Lines Matching refs:aead_req

182 	struct aead_request *aead_req = (struct aead_request *)req;  in tls_decrypt_done()  local
183 struct scatterlist *sgout = aead_req->dst; in tls_decrypt_done()
184 struct scatterlist *sgin = aead_req->src; in tls_decrypt_done()
213 kfree(aead_req); in tls_decrypt_done()
226 struct aead_request *aead_req, in tls_do_decryption() argument
234 aead_request_set_tfm(aead_req, ctx->aead_recv); in tls_do_decryption()
235 aead_request_set_ad(aead_req, prot->aad_size); in tls_do_decryption()
236 aead_request_set_crypt(aead_req, sgin, sgout, in tls_do_decryption()
241 aead_request_set_callback(aead_req, in tls_do_decryption()
246 aead_request_set_callback(aead_req, in tls_do_decryption()
251 ret = crypto_aead_decrypt(aead_req); in tls_do_decryption()
422 struct aead_request *aead_req = (struct aead_request *)req; in tls_encrypt_done() local
433 rec = container_of(aead_req, struct tls_rec, aead_req); in tls_encrypt_done()
484 struct aead_request *aead_req, in tls_do_encryption() argument
516 aead_request_set_tfm(aead_req, ctx->aead_send); in tls_do_encryption()
517 aead_request_set_ad(aead_req, prot->aad_size); in tls_do_encryption()
518 aead_request_set_crypt(aead_req, rec->sg_aead_in, in tls_do_encryption()
522 aead_request_set_callback(aead_req, CRYPTO_TFM_REQ_MAY_BACKLOG, in tls_do_encryption()
529 rc = crypto_aead_encrypt(aead_req); in tls_do_encryption()
719 req = &rec->aead_req; in tls_push_record()
1445 struct aead_request *aead_req; in tls_decrypt_sg() local
1485 aead_size = sizeof(*aead_req) + crypto_aead_reqsize(ctx->aead_recv); in tls_decrypt_sg()
1494 aead_req = (struct aead_request *)mem; in tls_decrypt_sg()
1569 data_len + prot->tail_size, aead_req, darg); in tls_decrypt_sg()