Lines Matching refs:ciph_ctx
29 EVP_CIPHER_CTX *ciph_ctx; in tls1_set_crypto_state() local
41 ciph_ctx = rl->enc_ctx; in tls1_set_crypto_state()
88 if (!EVP_CipherInit_ex(ciph_ctx, ciph, NULL, key, NULL, enc) in tls1_set_crypto_state()
89 || EVP_CIPHER_CTX_ctrl(ciph_ctx, EVP_CTRL_GCM_SET_IV_FIXED, in tls1_set_crypto_state()
95 if (!EVP_CipherInit_ex(ciph_ctx, ciph, NULL, NULL, NULL, enc) in tls1_set_crypto_state()
96 || EVP_CIPHER_CTX_ctrl(ciph_ctx, EVP_CTRL_AEAD_SET_IVLEN, 12, in tls1_set_crypto_state()
98 || EVP_CIPHER_CTX_ctrl(ciph_ctx, EVP_CTRL_AEAD_SET_TAG, in tls1_set_crypto_state()
100 || EVP_CIPHER_CTX_ctrl(ciph_ctx, EVP_CTRL_CCM_SET_IV_FIXED, in tls1_set_crypto_state()
102 || !EVP_CipherInit_ex(ciph_ctx, NULL, NULL, key, NULL, enc)) { in tls1_set_crypto_state()
107 if (!EVP_CipherInit_ex(ciph_ctx, ciph, NULL, key, iv, enc)) { in tls1_set_crypto_state()
115 && EVP_CIPHER_CTX_ctrl(ciph_ctx, EVP_CTRL_AEAD_SET_MAC_KEY, in tls1_set_crypto_state()
125 if (EVP_CIPHER_get0_provider(EVP_CIPHER_CTX_get0_cipher(ciph_ctx)) != NULL in tls1_set_crypto_state()
126 && !ossl_set_tls_provider_parameters(rl, ciph_ctx, ciph, md)) { in tls1_set_crypto_state()
133 int mode = EVP_CIPHER_CTX_get_mode(ciph_ctx); in tls1_set_crypto_state()
137 eivlen = EVP_CIPHER_CTX_get_iv_length(ciph_ctx); in tls1_set_crypto_state()