Lines Matching refs:aead_req
153 struct aead_request *aead_req = (struct aead_request *)req; in tls_decrypt_done() local
154 struct scatterlist *sgout = aead_req->dst; in tls_decrypt_done()
155 struct scatterlist *sgin = aead_req->src; in tls_decrypt_done()
207 kfree(aead_req); in tls_decrypt_done()
223 struct aead_request *aead_req, in tls_do_decryption() argument
231 aead_request_set_tfm(aead_req, ctx->aead_recv); in tls_do_decryption()
232 aead_request_set_ad(aead_req, prot->aad_size); in tls_do_decryption()
233 aead_request_set_crypt(aead_req, sgin, sgout, in tls_do_decryption()
245 aead_request_set_callback(aead_req, in tls_do_decryption()
250 aead_request_set_callback(aead_req, in tls_do_decryption()
255 ret = crypto_aead_decrypt(aead_req); in tls_do_decryption()
428 struct aead_request *aead_req = (struct aead_request *)req; in tls_encrypt_done() local
439 rec = container_of(aead_req, struct tls_rec, aead_req); in tls_encrypt_done()
490 struct aead_request *aead_req, in tls_do_encryption() argument
515 aead_request_set_tfm(aead_req, ctx->aead_send); in tls_do_encryption()
516 aead_request_set_ad(aead_req, prot->aad_size); in tls_do_encryption()
517 aead_request_set_crypt(aead_req, rec->sg_aead_in, in tls_do_encryption()
521 aead_request_set_callback(aead_req, CRYPTO_TFM_REQ_MAY_BACKLOG, in tls_do_encryption()
528 rc = crypto_aead_encrypt(aead_req); in tls_do_encryption()
718 req = &rec->aead_req; in tls_push_record()
1410 struct aead_request *aead_req; in decrypt_internal() local
1440 aead_size = sizeof(*aead_req) + crypto_aead_reqsize(ctx->aead_recv); in decrypt_internal()
1454 aead_req = (struct aead_request *)mem; in decrypt_internal()
1525 data_len, aead_req, async); in decrypt_internal()