Lines Matching refs:aead_req
51 struct aead_request *aead_req) in tls_do_decryption() argument
57 aead_request_set_tfm(aead_req, ctx->aead_recv); in tls_do_decryption()
58 aead_request_set_ad(aead_req, TLS_AAD_SPACE_SIZE); in tls_do_decryption()
59 aead_request_set_crypt(aead_req, sgin, sgout, in tls_do_decryption()
62 aead_request_set_callback(aead_req, CRYPTO_TFM_REQ_MAY_BACKLOG, in tls_do_decryption()
65 ret = crypto_wait_req(crypto_aead_decrypt(aead_req), &ctx->async_wait); in tls_do_decryption()
177 struct aead_request *aead_req, in tls_do_encryption() argument
185 aead_request_set_tfm(aead_req, ctx->aead_send); in tls_do_encryption()
186 aead_request_set_ad(aead_req, TLS_AAD_SPACE_SIZE); in tls_do_encryption()
187 aead_request_set_crypt(aead_req, ctx->sg_aead_in, ctx->sg_aead_out, in tls_do_encryption()
190 aead_request_set_callback(aead_req, CRYPTO_TFM_REQ_MAY_BACKLOG, in tls_do_encryption()
193 rc = crypto_wait_req(crypto_aead_encrypt(aead_req), &ctx->async_wait); in tls_do_encryption()
675 struct aead_request *aead_req; in decrypt_internal() local
701 aead_size = sizeof(*aead_req) + crypto_aead_reqsize(ctx->aead_recv); in decrypt_internal()
715 aead_req = (struct aead_request *)mem; in decrypt_internal()
772 err = tls_do_decryption(sk, sgin, sgout, iv, data_len, aead_req); in decrypt_internal()