Searched refs:enc_ctx (Results 1 – 8 of 8) sorted by relevance
/openssl/ssl/record/methods/ |
H A D | tls13_meth.c | 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() 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() [all …]
|
H A D | tls_multib.c | 34 && (EVP_CIPHER_get_flags(EVP_CIPHER_CTX_get0_cipher(rl->enc_ctx)) in tls_is_multiblock_capable() 111 packlen = EVP_CIPHER_CTX_ctrl(rl->enc_ctx, in tls_write_records_multiblock_int() 132 packleni = EVP_CIPHER_CTX_ctrl(rl->enc_ctx, in tls_write_records_multiblock_int() 145 if (EVP_CIPHER_CTX_ctrl(rl->enc_ctx, in tls_write_records_multiblock_int()
|
H A D | ssl3_meth.c | 35 if ((rl->enc_ctx = EVP_CIPHER_CTX_new()) == NULL) { in ssl3_set_crypto_state() 39 ciph_ctx = rl->enc_ctx; in ssl3_set_crypto_state() 113 ds = rl->enc_ctx; in ssl3_cipher() 238 && EVP_CIPHER_CTX_get_mode(rl->enc_ctx) == EVP_CIPH_CBC_MODE in ssl3_mac()
|
H A D | tls1_meth.c | 36 if ((rl->enc_ctx = EVP_CIPHER_CTX_new()) == NULL) { in tls1_set_crypto_state() 41 ciph_ctx = rl->enc_ctx; in tls1_set_crypto_state() 193 ds = rl->enc_ctx; in tls1_cipher() 194 if (!ossl_assert(rl->enc_ctx != NULL)) { in tls1_cipher() 199 enc = EVP_CIPHER_CTX_get0_cipher(rl->enc_ctx); in tls1_cipher() 515 && EVP_CIPHER_CTX_get_mode(rl->enc_ctx) == EVP_CIPH_CBC_MODE in tls1_mac()
|
H A D | dtls_meth.c | 217 && (rl->enc_ctx != NULL) in dtls_process_record() 742 if (rl->enc_ctx != NULL && in dtls_get_max_record_overhead() 743 (EVP_CIPHER_CTX_get_mode(rl->enc_ctx) == EVP_CIPH_CBC_MODE)) in dtls_get_max_record_overhead() 744 blocksize = EVP_CIPHER_CTX_get_block_size(rl->enc_ctx); in dtls_get_max_record_overhead() 753 assert(rl->enc_ctx == NULL || ((blocksize == 0 || rl->eivlen > 0) in dtls_get_max_record_overhead()
|
H A D | tls_common.c | 733 && rl->enc_ctx != NULL in tls_get_more_records() 734 && (EVP_CIPHER_get_flags(EVP_CIPHER_CTX_get0_cipher(rl->enc_ctx)) in tls_get_more_records() 881 if (rl->enc_ctx != NULL in tls_get_more_records() 1453 EVP_CIPHER_CTX_free(rl->enc_ctx); in tls_int_free() 1525 && rl->enc_ctx != NULL in tls_get_max_records_default() 1526 && (EVP_CIPHER_get_flags(EVP_CIPHER_CTX_get0_cipher(rl->enc_ctx)) in tls_get_max_records_default() 1729 if (rl->version == TLS1_3_VERSION && rl->enc_ctx != NULL) { in tls_post_encryption_processing_default()
|
H A D | recmethod_local.h | 294 EVP_CIPHER_CTX *enc_ctx; member
|
/openssl/test/ |
H A D | bad_dtls_test.c | 286 EVP_CIPHER_CTX *enc_ctx = NULL; in send_record() local 335 || !TEST_ptr(enc_ctx = EVP_CIPHER_CTX_new()) in send_record() 336 || !TEST_true(EVP_CipherInit_ex(enc_ctx, EVP_aes_128_cbc(), NULL, in send_record() 338 || !TEST_int_ge(EVP_Cipher(enc_ctx, enc, enc, len), 0)) in send_record() 356 EVP_CIPHER_CTX_free(enc_ctx); in send_record()
|
Completed in 24 milliseconds