Home
last modified time | relevance | path

Searched refs:enc_write_ctx (Results 1 – 13 of 13) sorted by relevance

/freebsd/crypto/openssl/ssl/statem/
H A Dstatem_dtls.c130 if (s->enc_write_ctx in dtls1_do_write()
131 && (EVP_CIPHER_get_flags(EVP_CIPHER_CTX_get0_cipher(s->enc_write_ctx)) & in dtls1_do_write()
139 if (s->enc_write_ctx && in dtls1_do_write()
140 (EVP_CIPHER_CTX_get_mode(s->enc_write_ctx) == EVP_CIPH_CBC_MODE)) in dtls1_do_write()
141 blocksize = 2 * EVP_CIPHER_CTX_get_block_size(s->enc_write_ctx); in dtls1_do_write()
1152 frag->msg_header.saved_retransmit_state.enc_write_ctx = s->enc_write_ctx; in dtls1_buffer_message()
1219 saved_state.enc_write_ctx = s->enc_write_ctx; in dtls1_retransmit_message()
1228 s->enc_write_ctx = frag->msg_header.saved_retransmit_state.enc_write_ctx; in dtls1_retransmit_message()
1240 s->enc_write_ctx = saved_state.enc_write_ctx; in dtls1_retransmit_message()
H A Dstatem_clnt.c770 EVP_CIPHER_CTX_free(s->enc_write_ctx); in ossl_statem_client_post_work()
771 s->enc_write_ctx = NULL; in ossl_statem_client_post_work()
1722 EVP_CIPHER_CTX_free(s->enc_write_ctx); in tls_process_as_hello_retry_request()
1723 s->enc_write_ctx = NULL; in tls_process_as_hello_retry_request()
/freebsd/crypto/openssl/ssl/record/
H A Drec_layer_s3.c455 && (EVP_CIPHER_get_flags(EVP_CIPHER_CTX_get0_cipher(s->enc_write_ctx)) in ssl3_write_bytes()
469 packlen = EVP_CIPHER_CTX_ctrl(s->enc_write_ctx, in ssl3_write_bytes()
521 packleni = EVP_CIPHER_CTX_ctrl(s->enc_write_ctx, in ssl3_write_bytes()
535 if (EVP_CIPHER_CTX_ctrl(s->enc_write_ctx, in ssl3_write_bytes()
603 || s->enc_write_ctx == NULL in ssl3_write_bytes()
604 || (EVP_CIPHER_get_flags(EVP_CIPHER_CTX_get0_cipher(s->enc_write_ctx)) in ssl3_write_bytes()
732 || (s->enc_write_ctx == NULL) in do_ssl3_write()
734 clear = s->enc_write_ctx ? 0 : 1; /* must be AEAD cipher */ in do_ssl3_write()
844 if (s->enc_write_ctx && SSL_USE_EXPLICIT_IV(s) && !SSL_TREAT_AS_TLS13(s)) { in do_ssl3_write()
845 int mode = EVP_CIPHER_CTX_get_mode(s->enc_write_ctx); in do_ssl3_write()
[all...]
H A Dssl3_record.c317 && !s->enc_write_ctx && !s->write_hash) { in ssl3_get_record()
880 ds = s->enc_write_ctx; in ssl3_enc()
881 if (s->enc_write_ctx == NULL) in ssl3_enc()
884 enc = EVP_CIPHER_CTX_get0_cipher(s->enc_write_ctx); in ssl3_enc()
1015 ds = s->enc_write_ctx; in tls1_enc()
1016 if (s->enc_write_ctx == NULL) in tls1_enc()
1021 enc = EVP_CIPHER_CTX_get0_cipher(s->enc_write_ctx); in tls1_enc()
H A Drec_layer_d1.c833 || (s->enc_write_ctx == NULL) in do_dtls1_write()
873 if (s->enc_write_ctx) { in do_dtls1_write()
874 int mode = EVP_CIPHER_CTX_get_mode(s->enc_write_ctx); in do_dtls1_write()
876 eivlen = EVP_CIPHER_CTX_get_iv_length(s->enc_write_ctx); in do_dtls1_write()
H A Dssl3_record_tls13.c44 ctx = s->enc_write_ctx; in tls13_enc()
/freebsd/crypto/openssl/test/
H A Dtls13encryptiontest.c338 s->enc_write_ctx = EVP_CIPHER_CTX_new(); in test_tls13_encryption()
339 if (!TEST_ptr(s->enc_write_ctx)) in test_tls13_encryption()
363 if (EVP_CipherInit_ex(s->enc_write_ctx, ciph, NULL, key, NULL, 1) <= 0 in test_tls13_encryption()
/freebsd/crypto/openssl/ssl/
H A Dtls13_enc.c461 if (s->enc_write_ctx != NULL) { in tls13_change_cipher_state()
462 EVP_CIPHER_CTX_reset(s->enc_write_ctx); in tls13_change_cipher_state()
464 s->enc_write_ctx = EVP_CIPHER_CTX_new(); in tls13_change_cipher_state()
465 if (s->enc_write_ctx == NULL) { in tls13_change_cipher_state()
470 ciph_ctx = s->enc_write_ctx; in tls13_change_cipher_state()
787 ciph_ctx = s->enc_write_ctx; in tls13_update_key()
H A Ds3_enc.c152 if (s->enc_write_ctx != NULL) { in ssl3_change_cipher_state()
154 } else if ((s->enc_write_ctx = EVP_CIPHER_CTX_new()) == NULL) { in ssl3_change_cipher_state()
161 EVP_CIPHER_CTX_reset(s->enc_write_ctx); in ssl3_change_cipher_state()
163 dd = s->enc_write_ctx; in ssl3_change_cipher_state()
H A Dd1_lib.c139 if (s->enc_write_ctx in dtls1_clear_sent_buffer()
140 != frag->msg_header.saved_retransmit_state.enc_write_ctx) in dtls1_clear_sent_buffer()
142 .enc_write_ctx); in dtls1_clear_sent_buffer()
H A Dt1_enc.c247 if (s->enc_write_ctx != NULL && !SSL_IS_DTLS(s)) { in tls1_change_cipher_state()
249 } else if ((s->enc_write_ctx = EVP_CIPHER_CTX_new()) == NULL) { in tls1_change_cipher_state()
253 dd = s->enc_write_ctx; in tls1_change_cipher_state()
H A Dssl_local.h1478 EVP_CIPHER_CTX *enc_write_ctx; /* cryptographic state */ member
1854 EVP_CIPHER_CTX *enc_write_ctx; /* cryptographic state */ member
H A Dssl_lib.c4199 if (s->enc_write_ctx != NULL) { in ssl_clear_cipher_ctx()
4200 EVP_CIPHER_CTX_free(s->enc_write_ctx); in ssl_clear_cipher_ctx()
4201 s->enc_write_ctx = NULL; in ssl_clear_cipher_ctx()