Lines Matching refs:enc_ctx
63 ciph_ctx = rl->enc_ctx = EVP_CIPHER_CTX_new(); in tls13_set_crypto_state()
89 EVP_CIPHER_CTX *enc_ctx; in tls13_cipher() local
109 enc_ctx = rl->enc_ctx; /* enc_ctx is ignored when rl->mac_ctx != NULL */ in tls13_cipher()
113 if (enc_ctx == NULL && rl->mac_ctx == NULL) { in tls13_cipher()
134 int ivlen = EVP_CIPHER_CTX_get_iv_length(enc_ctx); in tls13_cipher()
208 cipher = EVP_CIPHER_CTX_get0_cipher(enc_ctx); in tls13_cipher()
215 if (EVP_CipherInit_ex(enc_ctx, NULL, NULL, NULL, nonce, sending) <= 0 in tls13_cipher()
216 || (!sending && EVP_CIPHER_CTX_ctrl(enc_ctx, EVP_CTRL_AEAD_SET_TAG, in tls13_cipher()
228 && EVP_CipherUpdate(enc_ctx, NULL, &lenu, NULL, in tls13_cipher()
230 || EVP_CipherUpdate(enc_ctx, NULL, &lenu, recheader, in tls13_cipher()
232 || EVP_CipherUpdate(enc_ctx, rec->data, &lenu, rec->input, in tls13_cipher()
234 || EVP_CipherFinal_ex(enc_ctx, rec->data + lenu, &lenf) <= 0 in tls13_cipher()
240 if (EVP_CIPHER_CTX_ctrl(enc_ctx, EVP_CTRL_AEAD_GET_TAG, rl->taglen, in tls13_cipher()