Home
last modified time | relevance | path

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

/mbedtls-3.4.0/library/
Dssl_client.c91 MBEDTLS_PUT_UINT16_BE( MBEDTLS_TLS_EXT_SERVERNAME, p, 0 ); in ssl_write_hostname_ext()
94 MBEDTLS_PUT_UINT16_BE( hostname_len + 5, p, 0 ); in ssl_write_hostname_ext()
97 MBEDTLS_PUT_UINT16_BE( hostname_len + 3, p, 0 ); in ssl_write_hostname_ext()
102 MBEDTLS_PUT_UINT16_BE( hostname_len, p, 0 ); in ssl_write_hostname_ext()
150 MBEDTLS_PUT_UINT16_BE( MBEDTLS_TLS_EXT_ALPN, p, 0 ); in ssl_write_alpn_ext()
178 MBEDTLS_PUT_UINT16_BE( *out_len - 6, buf, 4 ); in ssl_write_alpn_ext()
181 MBEDTLS_PUT_UINT16_BE( *out_len - 4, buf, 2 ); in ssl_write_alpn_ext()
274 MBEDTLS_PUT_UINT16_BE( *group_list, p, 0 ); in ssl_write_supported_groups_ext()
293 MBEDTLS_PUT_UINT16_BE( MBEDTLS_TLS_EXT_SUPPORTED_GROUPS, buf, 0 ); in ssl_write_supported_groups_ext()
295 MBEDTLS_PUT_UINT16_BE( named_group_list_len + 2, buf, 2 ); in ssl_write_supported_groups_ext()
[all …]
Dssl_tls13_server.c693 MBEDTLS_PUT_UINT16_BE( MBEDTLS_TLS_EXT_PRE_SHARED_KEY, p, 0 ); in ssl_tls13_write_server_pre_shared_key_ext()
694 MBEDTLS_PUT_UINT16_BE( 2, p, 2 ); in ssl_tls13_write_server_pre_shared_key_ext()
696 MBEDTLS_PUT_UINT16_BE( ssl->handshake->selected_identity, p, 4 ); in ssl_tls13_write_server_pre_shared_key_ext()
1805 MBEDTLS_PUT_UINT16_BE( MBEDTLS_TLS_EXT_SUPPORTED_VERSIONS, buf, 0 ); in ssl_tls13_write_server_hello_supported_versions_ext()
1807 MBEDTLS_PUT_UINT16_BE( 2, buf, 2 ); in ssl_tls13_write_server_hello_supported_versions_ext()
1909 MBEDTLS_PUT_UINT16_BE( MBEDTLS_TLS_EXT_KEY_SHARE, p, 0 ); in ssl_tls13_write_key_share_ext()
1910 MBEDTLS_PUT_UINT16_BE( group, server_share, 0 ); in ssl_tls13_write_key_share_ext()
1921 MBEDTLS_PUT_UINT16_BE( key_exchange_length, server_share + 2, 0 ); in ssl_tls13_write_key_share_ext()
1923 MBEDTLS_PUT_UINT16_BE( p - server_share, buf, 2 ); in ssl_tls13_write_key_share_ext()
1982 MBEDTLS_PUT_UINT16_BE( MBEDTLS_TLS_EXT_KEY_SHARE, buf, 0 ); in ssl_tls13_write_hrr_key_share_ext()
[all …]
Dssl_tls13_client.c68 MBEDTLS_PUT_UINT16_BE( MBEDTLS_TLS_EXT_SUPPORTED_VERSIONS, p, 0 ); in ssl_tls13_write_supported_versions_ext()
69 MBEDTLS_PUT_UINT16_BE( versions_len + 1, p, 2 ); in ssl_tls13_write_supported_versions_ext()
331 MBEDTLS_PUT_UINT16_BE( group_id, group, 0 ); in ssl_tls13_write_key_share_ext()
333 MBEDTLS_PUT_UINT16_BE( key_exchange_len, group, 2 ); in ssl_tls13_write_key_share_ext()
352 MBEDTLS_PUT_UINT16_BE( MBEDTLS_TLS_EXT_KEY_SHARE, buf, 0 ); in ssl_tls13_write_key_share_ext()
354 MBEDTLS_PUT_UINT16_BE( client_shares_len + 2, buf, 2 ); in ssl_tls13_write_key_share_ext()
356 MBEDTLS_PUT_UINT16_BE( client_shares_len, buf, 4 ); in ssl_tls13_write_key_share_ext()
596 MBEDTLS_PUT_UINT16_BE( MBEDTLS_TLS_EXT_COOKIE, p, 0 ); in ssl_tls13_write_cookie_ext()
597 MBEDTLS_PUT_UINT16_BE( handshake->hrr_cookie_len + 2, p, 2 ); in ssl_tls13_write_cookie_ext()
598 MBEDTLS_PUT_UINT16_BE( handshake->hrr_cookie_len, p, 4 ); in ssl_tls13_write_cookie_ext()
[all …]
Dssl_tls12_server.c1779 MBEDTLS_PUT_UINT16_BE( MBEDTLS_TLS_EXT_CID, p, 0 ); in ssl_write_cid_ext()
1782 MBEDTLS_PUT_UINT16_BE( ext_len, p, 0 ); in ssl_write_cid_ext()
1829 MBEDTLS_PUT_UINT16_BE( MBEDTLS_TLS_EXT_ENCRYPT_THEN_MAC, p, 0 ); in ssl_write_encrypt_then_mac_ext()
1855 MBEDTLS_PUT_UINT16_BE( MBEDTLS_TLS_EXT_EXTENDED_MASTER_SECRET, p, 0 ); in ssl_write_extended_ms_ext()
1880 MBEDTLS_PUT_UINT16_BE( MBEDTLS_TLS_EXT_SESSION_TICKET, p, 0 ); in ssl_write_session_ticket_ext()
1904 MBEDTLS_PUT_UINT16_BE( MBEDTLS_TLS_EXT_RENEGOTIATION_INFO, p, 0 ); in ssl_write_renegotiation_ext()
1945 MBEDTLS_PUT_UINT16_BE( MBEDTLS_TLS_EXT_MAX_FRAGMENT_LENGTH, p, 0 ); in ssl_write_max_fragment_length_ext()
1975 MBEDTLS_PUT_UINT16_BE( MBEDTLS_TLS_EXT_SUPPORTED_POINT_FORMATS, p, 0 ); in ssl_write_supported_point_formats_ext()
2013 MBEDTLS_PUT_UINT16_BE( MBEDTLS_TLS_EXT_ECJPAKE_KKPP, p, 0 ); in ssl_write_ecjpake_kkpp_ext()
2038 MBEDTLS_PUT_UINT16_BE( kkpp_len, p, 0 ); in ssl_write_ecjpake_kkpp_ext()
[all …]
Dssl_tls12_client.c77 MBEDTLS_PUT_UINT16_BE( MBEDTLS_TLS_EXT_RENEGOTIATION_INFO, p, 0 ); in ssl_write_renegotiation_ext()
110 MBEDTLS_PUT_UINT16_BE( MBEDTLS_TLS_EXT_SUPPORTED_POINT_FORMATS, p, 0 ); in ssl_write_supported_point_formats_ext()
153 MBEDTLS_PUT_UINT16_BE( MBEDTLS_TLS_EXT_ECJPAKE_KKPP, p, 0 ); in ssl_write_ecjpake_kkpp_ext()
209 MBEDTLS_PUT_UINT16_BE( kkpp_len, p, 0 ); in ssl_write_ecjpake_kkpp_ext()
247 MBEDTLS_PUT_UINT16_BE( MBEDTLS_TLS_EXT_CID, p, 0 ); in ssl_write_cid_ext()
250 MBEDTLS_PUT_UINT16_BE( ext_len, p, 0 ); in ssl_write_cid_ext()
281 MBEDTLS_PUT_UINT16_BE( MBEDTLS_TLS_EXT_MAX_FRAGMENT_LENGTH, p, 0 ); in ssl_write_max_fragment_length_ext()
314 MBEDTLS_PUT_UINT16_BE( MBEDTLS_TLS_EXT_ENCRYPT_THEN_MAC, p, 0 ); in ssl_write_encrypt_then_mac_ext()
345 MBEDTLS_PUT_UINT16_BE( MBEDTLS_TLS_EXT_EXTENDED_MASTER_SECRET, p, 0 ); in ssl_write_extended_ms_ext()
378 MBEDTLS_PUT_UINT16_BE( MBEDTLS_TLS_EXT_SESSION_TICKET, p, 0 ); in ssl_write_session_ticket_ext()
[all …]
Dcommon.h260 #ifndef MBEDTLS_PUT_UINT16_BE
261 #define MBEDTLS_PUT_UINT16_BE( n, data, offset ) \ macro
Dssl_tls13_generic.c880 MBEDTLS_PUT_UINT16_BE( 0, p, 0 ); in ssl_tls13_write_certificate_body()
1093 MBEDTLS_PUT_UINT16_BE( *sig_alg, p, 0 ); in ssl_tls13_write_certificate_verify_body()
1094 MBEDTLS_PUT_UINT16_BE( signature_len, p, 2 ); in ssl_tls13_write_certificate_verify_body()
1399 MBEDTLS_PUT_UINT16_BE( MBEDTLS_TLS_EXT_EARLY_DATA, p, 0 ); in mbedtls_ssl_tls13_write_early_data_ext()
1400 MBEDTLS_PUT_UINT16_BE( 0, p, 2 ); in mbedtls_ssl_tls13_write_early_data_ext()
Dssl_tls.c2384 MBEDTLS_PUT_UINT16_BE( session->ciphersuite, p, 1 ); in ssl_tls13_session_save()
2406 MBEDTLS_PUT_UINT16_BE( hostname_len, p, 0 ); in ssl_tls13_session_save()
2423 MBEDTLS_PUT_UINT16_BE( session->ticket_len, p, 0 ); in ssl_tls13_session_save()
4379 MBEDTLS_PUT_UINT16_BE( ssl->mtu, p, 0 ); in mbedtls_ssl_context_save()
6524 MBEDTLS_PUT_UINT16_BE( psk_len, p, 0 ); in mbedtls_ssl_psk_derive_premaster()
6565 MBEDTLS_PUT_UINT16_BE( len, p, 0 ); in mbedtls_ssl_psk_derive_premaster()
6586 MBEDTLS_PUT_UINT16_BE( zlen, p, 0 ); in mbedtls_ssl_psk_derive_premaster()
6603 MBEDTLS_PUT_UINT16_BE( psk_len, p, 0 ); in mbedtls_ssl_psk_derive_premaster()
8787 MBEDTLS_PUT_UINT16_BE( session->ciphersuite, p, 0 ); in ssl_tls12_session_save()
9213 MBEDTLS_PUT_UINT16_BE( *sig_alg, p, 0 ); in mbedtls_ssl_write_sig_alg_ext()
[all …]
Dssl_msg.c601 MBEDTLS_PUT_UINT16_BE(ad_len_field, cur, 0); in ssl_extract_add_data_from_record()
619 MBEDTLS_PUT_UINT16_BE( ad_len_field, cur, 0 ); in ssl_extract_add_data_from_record()
625 MBEDTLS_PUT_UINT16_BE( ad_len_field, cur, 0 ); in ssl_extract_add_data_from_record()
2711 MBEDTLS_PUT_UINT16_BE( ssl->handshake->out_msg_seq, ssl->out_msg, 4 ); in mbedtls_ssl_write_handshake_msg_ext()
2817 MBEDTLS_PUT_UINT16_BE( len, ssl->out_len, 0); in mbedtls_ssl_write_record()
2856 MBEDTLS_PUT_UINT16_BE( rec.data_len, ssl->out_len, 0 ); in mbedtls_ssl_write_record()
3466 MBEDTLS_PUT_UINT16_BE( *olen - 13, obuf, 11 ); in mbedtls_ssl_check_dtls_clihlo_cookie()
4871 MBEDTLS_PUT_UINT16_BE( rec.data_len, ssl->in_len, 0 ); in ssl_get_next_record()
6066 MBEDTLS_PUT_UINT16_BE( tls_version, version, 0 ); in mbedtls_ssl_write_version()
Dssl_ticket.c345 MBEDTLS_PUT_UINT16_BE( clear_len, state_len_bytes, 0 ); in mbedtls_ssl_ticket_write()
Decp.c955 MBEDTLS_PUT_UINT16_BE( curve_info->tls_id, buf, 0 ); in mbedtls_ecp_tls_write_group()
/mbedtls-3.4.0/docs/architecture/
Dtls13-support.md293 MBEDTLS_PUT_UINT16_BE( MBEDTLS_TLS_EXT_SUPPORTED_VERSIONS, p, 0 );
324 MBEDTLS_PUT_UINT16_BE( cipher_suite, cipher_suites_iter, 0 );
/mbedtls-3.4.0/tests/suites/
Dtest_suite_ssl.function2572 MBEDTLS_PUT_UINT16_BE( extensions_len + 1, p_extensions_len, 0 );