Searched refs:msg_len (Results 1 – 7 of 7) sorted by relevance
/mbedtls-development/library/ |
A D | ssl_tls13_generic.c | 97 size_t msg_len ) in mbedtls_ssl_tls13_finish_handshake_msg() argument 104 msg_len_with_header = msg_len + 4; in mbedtls_ssl_tls13_finish_handshake_msg() 115 size_t msg_len ) in mbedtls_ssl_tls1_3_add_hs_msg_to_checksum() argument 117 mbedtls_ssl_tls13_add_hs_hdr_to_checksum( ssl, hs_type, msg_len ); in mbedtls_ssl_tls1_3_add_hs_msg_to_checksum() 118 ssl->handshake->update_checksum( ssl, msg, msg_len ); in mbedtls_ssl_tls1_3_add_hs_msg_to_checksum()
|
A D | ssl_srv.c | 1241 msg_len = ( ssl->in_len[0] << 8 ) | ssl->in_len[1]; in ssl_parse_client_hello() 1247 msg_len = ssl->in_hslen; in ssl_parse_client_hello() 1252 if( msg_len > MBEDTLS_SSL_IN_CONTENT_LEN ) in ssl_parse_client_hello() 1278 ssl->handshake->update_checksum( ssl, buf, msg_len ); in ssl_parse_client_hello() 1288 if( msg_len < mbedtls_ssl_hs_hdr_len( ssl ) ) in ssl_parse_client_hello() 1360 msg_len -= mbedtls_ssl_hs_hdr_len( ssl ); in ssl_parse_client_hello() 1383 if( msg_len < 38 ) in ssl_parse_client_hello() 1538 comp_len + comp_offset + 1 > msg_len ) in ssl_parse_client_hello() 1559 if( msg_len > ext_offset ) in ssl_parse_client_hello() 1561 if( msg_len < ext_offset + 2 ) in ssl_parse_client_hello() [all …]
|
A D | ssl_msg.c | 2729 uint32_t msg_len, frag_off, frag_len; in ssl_check_hs_header() local 2731 msg_len = ssl_get_hs_total_len( ssl ); in ssl_check_hs_header() 2735 if( frag_off > msg_len ) in ssl_check_hs_header() 2738 if( frag_len > msg_len - frag_off ) in ssl_check_hs_header() 2818 alloc_len += msg_len / 8 + ( msg_len % 8 != 0 ); /* Bitmap */ in ssl_get_reassembly_buffer_size() 3860 size_t msg_len = ( hs_buf->data[1] << 16 ) | in ssl_load_buffered_message() local 3866 if( msg_len + 12 > MBEDTLS_SSL_IN_CONTENT_LEN ) in ssl_load_buffered_message() 3877 ssl->in_hslen = msg_len + 12; in ssl_load_buffered_message() 3878 ssl->in_msglen = msg_len + 12; in ssl_load_buffered_message() 3963 size_t msg_len = ssl->in_hslen - 12; in ssl_buffer_message() local [all …]
|
A D | ssl_tls13_client.c | 857 size_t buf_len, msg_len; in ssl_tls13_write_client_hello() local 869 &msg_len ) ); in ssl_tls13_write_client_hello() 873 msg_len ); in ssl_tls13_write_client_hello() 874 ssl->handshake->update_checksum( ssl, buf, msg_len ); in ssl_tls13_write_client_hello() 879 msg_len ) ); in ssl_tls13_write_client_hello()
|
A D | ssl_misc.h | 1682 size_t msg_len ); 1694 size_t msg_len );
|
/mbedtls-development/tests/suites/ |
A D | test_suite_ccm.function | 97 void ccm_lengths( int msg_len, int iv_len, int add_len, int tag_len, int res ) 120 TEST_ASSERT( mbedtls_ccm_encrypt_and_tag( &ctx, msg_len, iv, iv_len, add, add_len, 123 decrypt_ret = mbedtls_ccm_auth_decrypt( &ctx, msg_len, iv, iv_len, add, add_len, 138 void ccm_star_lengths( int msg_len, int iv_len, int add_len, int tag_len, 162 TEST_ASSERT( mbedtls_ccm_star_encrypt_and_tag( &ctx, msg_len, iv, iv_len, 165 decrypt_ret = mbedtls_ccm_star_auth_decrypt( &ctx, msg_len, iv, iv_len, add,
|
A D | test_suite_ssl.function | 336 * the oldest inserted message length(fifo). \p msg_len can be null, in which 372 * too small to fit the message. In this case the \p msg_len will be 377 size_t buf_len, size_t* msg_len ) 379 if( queue == NULL || msg_len == NULL ) 384 *msg_len = queue->messages[queue->pos]; 685 size_t msg_len; 699 ret = mbedtls_test_message_queue_peek_info( queue, buf_len, &msg_len ); 703 drop_len = msg_len - buf_len; 706 msg_len = buf_len; 712 if( mbedtls_mock_tcp_recv_b( socket, buf, msg_len ) != (int) msg_len ) [all …]
|
Completed in 31 milliseconds