/mbedtls-3.7.0/library/ |
D | ssl_client.c | 917 size_t buf_len, msg_len, binders_len; in mbedtls_ssl_write_client_hello() local 929 &msg_len, in mbedtls_ssl_write_client_hello() 934 ssl->out_msglen = msg_len + 4; in mbedtls_ssl_write_client_hello() 963 msg_len); in mbedtls_ssl_write_client_hello() 968 ret = ssl->handshake->update_checksum(ssl, buf, msg_len - binders_len); in mbedtls_ssl_write_client_hello() 977 ssl, buf + msg_len - binders_len, buf + msg_len)); in mbedtls_ssl_write_client_hello() 978 ret = ssl->handshake->update_checksum(ssl, buf + msg_len - binders_len, in mbedtls_ssl_write_client_hello() 989 msg_len)); in mbedtls_ssl_write_client_hello()
|
D | ssl_tls13_generic.c | 929 size_t buf_len, msg_len; in mbedtls_ssl_tls13_write_certificate() local 939 &msg_len)); in mbedtls_ssl_tls13_write_certificate() 942 ssl, MBEDTLS_SSL_HS_CERTIFICATE, buf, msg_len)); in mbedtls_ssl_tls13_write_certificate() 945 ssl, buf_len, msg_len)); in mbedtls_ssl_tls13_write_certificate() 1130 size_t buf_len, msg_len; in mbedtls_ssl_tls13_write_certificate_verify() local 1139 ssl, buf, buf + buf_len, &msg_len)); in mbedtls_ssl_tls13_write_certificate_verify() 1143 buf, msg_len)); in mbedtls_ssl_tls13_write_certificate_verify() 1146 ssl, buf_len, msg_len)); in mbedtls_ssl_tls13_write_certificate_verify() 1308 size_t buf_len, msg_len; in mbedtls_ssl_tls13_write_finished_message() local 1318 ssl, buf, buf + buf_len, &msg_len)); in mbedtls_ssl_tls13_write_finished_message() [all …]
|
D | ssl_tls13_server.c | 2410 size_t buf_len, msg_len; in ssl_tls13_write_server_hello() local 2421 &msg_len, in ssl_tls13_write_server_hello() 2425 ssl, MBEDTLS_SSL_HS_SERVER_HELLO, buf, msg_len)); in ssl_tls13_write_server_hello() 2428 ssl, buf_len, msg_len)); in ssl_tls13_write_server_hello() 2483 size_t buf_len, msg_len; in ssl_tls13_write_hello_retry_request() local 2495 &msg_len, in ssl_tls13_write_hello_retry_request() 2498 ssl, MBEDTLS_SSL_HS_SERVER_HELLO, buf, msg_len)); in ssl_tls13_write_hello_retry_request() 2502 msg_len)); in ssl_tls13_write_hello_retry_request() 2602 size_t buf_len, msg_len; in ssl_tls13_write_encrypted_extensions() local 2616 ssl, buf, buf + buf_len, &msg_len)); in ssl_tls13_write_encrypted_extensions() [all …]
|
D | ssl_tls12_server.c | 892 size_t msg_len, ciph_len, sess_len, comp_len, ext_len; in ssl_parse_client_hello() local 996 msg_len = MBEDTLS_GET_UINT16_BE(ssl->in_len, 0); in ssl_parse_client_hello() 1001 msg_len = ssl->in_hslen; in ssl_parse_client_hello() 1008 if (msg_len > MBEDTLS_SSL_IN_CONTENT_LEN) { in ssl_parse_client_hello() 1014 mbedtls_ssl_in_hdr_len(ssl) + msg_len)) != 0) { in ssl_parse_client_hello() 1022 ssl->next_record_offset = msg_len + mbedtls_ssl_in_hdr_len(ssl); in ssl_parse_client_hello() 1031 MBEDTLS_SSL_DEBUG_BUF(4, "record contents", buf, msg_len); in ssl_parse_client_hello() 1033 ret = ssl->handshake->update_checksum(ssl, buf, msg_len); in ssl_parse_client_hello() 1047 if (msg_len < mbedtls_ssl_hs_hdr_len(ssl)) { in ssl_parse_client_hello() 1072 if (msg_len != mbedtls_ssl_hs_hdr_len(ssl) + handshake_len) { in ssl_parse_client_hello() [all …]
|
D | ssl_msg.c | 2910 size_t buf_len, size_t msg_len) in mbedtls_ssl_finish_handshake_msg() argument 2917 msg_with_header_len = msg_len + 4; in mbedtls_ssl_finish_handshake_msg() 3111 uint32_t msg_len, frag_off, frag_len; in ssl_check_hs_header() local 3113 msg_len = ssl_get_hs_total_len(ssl); in ssl_check_hs_header() 3117 if (frag_off > msg_len) { in ssl_check_hs_header() 3121 if (frag_len > msg_len - frag_off) { in ssl_check_hs_header() 3199 static size_t ssl_get_reassembly_buffer_size(size_t msg_len, in ssl_get_reassembly_buffer_size() argument 3205 alloc_len += msg_len; /* Content buffer */ in ssl_get_reassembly_buffer_size() 3208 alloc_len += msg_len / 8 + (msg_len % 8 != 0); /* Bitmap */ in ssl_get_reassembly_buffer_size() 4333 size_t msg_len = MBEDTLS_GET_UINT24_BE(hs_buf->data, 1); in ssl_load_buffered_message() local [all …]
|
D | lmots.c | 121 size_t msg_len, in create_digit_array_with_checksum() argument 158 status = psa_hash_update(&op, msg, msg_len); in create_digit_array_with_checksum()
|
D | ssl_misc.h | 1462 size_t buf_len, size_t msg_len); 1494 size_t msg_len);
|
D | ssl_tls.c | 821 size_t msg_len) in mbedtls_ssl_add_hs_msg_to_checksum() argument 824 ret = mbedtls_ssl_add_hs_hdr_to_checksum(ssl, hs_type, msg_len); in mbedtls_ssl_add_hs_msg_to_checksum() 828 return ssl->handshake->update_checksum(ssl, msg, msg_len); in mbedtls_ssl_add_hs_msg_to_checksum()
|
/mbedtls-3.7.0/tests/src/test_helpers/ |
D | ssl_helpers.c | 300 size_t buf_len, size_t *msg_len) in test_ssl_message_queue_peek_info() argument 302 if (queue == NULL || msg_len == NULL) { in test_ssl_message_queue_peek_info() 309 *msg_len = queue->messages[queue->pos]; in test_ssl_message_queue_peek_info() 310 return (*msg_len > buf_len) ? MBEDTLS_TEST_ERROR_MESSAGE_TRUNCATED : 0; in test_ssl_message_queue_peek_info() 517 size_t msg_len; in mbedtls_test_mock_tcp_recv_msg() local 530 ret = test_ssl_message_queue_peek_info(queue, buf_len, &msg_len); in mbedtls_test_mock_tcp_recv_msg() 533 drop_len = msg_len - buf_len; in mbedtls_test_mock_tcp_recv_msg() 536 msg_len = buf_len; in mbedtls_test_mock_tcp_recv_msg() 541 if (mbedtls_test_mock_tcp_recv_b(socket, buf, msg_len) != (int) msg_len) { in mbedtls_test_mock_tcp_recv_msg() 556 return (msg_len > INT_MAX) ? INT_MAX : (int) msg_len; in mbedtls_test_mock_tcp_recv_msg()
|
/mbedtls-3.7.0/tests/suites/ |
D | test_suite_ccm.function | 101 void ccm_lengths(int msg_len, int iv_len, int add_len, int tag_len, int res) 125 TEST_ASSERT(mbedtls_ccm_encrypt_and_tag(&ctx, msg_len, iv, iv_len, add, add_len, 128 decrypt_ret = mbedtls_ccm_auth_decrypt(&ctx, msg_len, iv, iv_len, add, add_len, 145 void ccm_star_lengths(int msg_len, int iv_len, int add_len, int tag_len, 170 TEST_ASSERT(mbedtls_ccm_star_encrypt_and_tag(&ctx, msg_len, iv, iv_len, 173 decrypt_ret = mbedtls_ccm_star_auth_decrypt(&ctx, msg_len, iv, iv_len, add,
|