Home
last modified time | relevance | path

Searched refs:ciph_ctx (Results 1 – 3 of 3) sorted by relevance

/openssl/ssl/record/methods/
H A Dtls1_meth.c29 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()
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()
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()
133 int mode = EVP_CIPHER_CTX_get_mode(ciph_ctx); in tls1_set_crypto_state()
[all …]
H A Dtls13_meth.c26 EVP_CIPHER_CTX *ciph_ctx; in tls13_set_crypto_state() local
63 ciph_ctx = rl->enc_ctx = EVP_CIPHER_CTX_new(); in tls13_set_crypto_state()
64 if (ciph_ctx == NULL) { in tls13_set_crypto_state()
71 if (EVP_CipherInit_ex(ciph_ctx, ciph, NULL, NULL, NULL, enc) <= 0 in tls13_set_crypto_state()
72 || EVP_CIPHER_CTX_ctrl(ciph_ctx, EVP_CTRL_AEAD_SET_IVLEN, ivlen, in tls13_set_crypto_state()
75 && EVP_CIPHER_CTX_ctrl(ciph_ctx, EVP_CTRL_AEAD_SET_TAG, taglen, in tls13_set_crypto_state()
77 || EVP_CipherInit_ex(ciph_ctx, NULL, NULL, key, NULL, enc) <= 0) { in tls13_set_crypto_state()
H A Dssl3_meth.c27 EVP_CIPHER_CTX *ciph_ctx; in ssl3_set_crypto_state() local
39 ciph_ctx = rl->enc_ctx; in ssl3_set_crypto_state()
62 if (!EVP_CipherInit_ex(ciph_ctx, ciph, NULL, key, iv, enc)) { in ssl3_set_crypto_state()
71 if (EVP_CIPHER_get0_provider(EVP_CIPHER_CTX_get0_cipher(ciph_ctx)) != NULL in ssl3_set_crypto_state()
72 && !ossl_set_tls_provider_parameters(rl, ciph_ctx, ciph, md)) { in ssl3_set_crypto_state()

Completed in 7 milliseconds