Home
last modified time | relevance | path

Searched refs:msg_len (Results 1 – 11 of 11) sorted by relevance

/openthread-3.7.0/third_party/mbedtls/repo/library/
Dssl_client.c917 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()
Dssl_tls13_generic.c929 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 …]
Dssl_tls13_server.c2410 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 …]
Dssl_tls12_server.c892 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 …]
Dssl_msg.c2910 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 …]
Dlmots.c121 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()
Dssl_misc.h1462 size_t buf_len, size_t msg_len);
1494 size_t msg_len);
Dssl_tls.c821 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()
/openthread-3.7.0/tests/toranj/ncp/
Dtest-023-multicast-traffic.py69 msg_len=30, argument
77 sender = src_node.prepare_tx(src_addr, mcast_addr, msg_len, mcast_hops=mcast_hops)
207 send_mcast(r3, ml3, ml_all_thread_nodes_addr, all_nodes, msg_len=400)
/openthread-3.7.0/third_party/mbedtls/repo/tests/src/test_helpers/
Dssl_helpers.c300 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()
/openthread-3.7.0/third_party/mbedtls/repo/tests/suites/
Dtest_suite_ccm.function101 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,