Lines Matching refs:end
99 const unsigned char *end, in ssl_write_hostname_ext() argument
116 MBEDTLS_SSL_CHK_BUF_PTR( p, end, hostname_len + 9 ); in ssl_write_hostname_ext()
170 const unsigned char *end, in ssl_write_renegotiation_ext() argument
186 MBEDTLS_SSL_CHK_BUF_PTR( p, end, 5 + ssl->verify_data_len ); in ssl_write_renegotiation_ext()
214 const unsigned char *end, in ssl_write_signature_algorithms_ext() argument
256 MBEDTLS_SSL_CHK_BUF_PTR( p, end, sig_alg_len + 6 ); in ssl_write_signature_algorithms_ext()
313 const unsigned char *end, in ssl_write_supported_elliptic_curves_ext() argument
355 MBEDTLS_SSL_CHK_BUF_PTR( p, end, 6 + elliptic_curve_len ); in ssl_write_supported_elliptic_curves_ext()
385 const unsigned char *end, in ssl_write_supported_point_formats_ext() argument
395 MBEDTLS_SSL_CHK_BUF_PTR( p, end, 6 ); in ssl_write_supported_point_formats_ext()
417 const unsigned char *end, in ssl_write_ecjpake_kkpp_ext() argument
433 MBEDTLS_SSL_CHK_BUF_PTR( p, end, 4 ); in ssl_write_ecjpake_kkpp_ext()
449 p + 2, end - p - 2, &kkpp_len, in ssl_write_ecjpake_kkpp_ext()
473 MBEDTLS_SSL_CHK_BUF_PTR( p + 2, end, kkpp_len ); in ssl_write_ecjpake_kkpp_ext()
491 const unsigned char *end, in ssl_write_cid_ext() argument
516 MBEDTLS_SSL_CHK_BUF_PTR( p, end, (unsigned)( ssl->own_cid_len + 5 ) ); in ssl_write_cid_ext()
538 const unsigned char *end, in ssl_write_max_fragment_length_ext() argument
551 MBEDTLS_SSL_CHK_BUF_PTR( p, end, 5 ); in ssl_write_max_fragment_length_ext()
571 const unsigned char *end, in ssl_write_truncated_hmac_ext() argument
584 MBEDTLS_SSL_CHK_BUF_PTR( p, end, 4 ); in ssl_write_truncated_hmac_ext()
602 const unsigned char *end, in ssl_write_encrypt_then_mac_ext() argument
616 MBEDTLS_SSL_CHK_BUF_PTR( p, end, 4 ); in ssl_write_encrypt_then_mac_ext()
634 const unsigned char *end, in ssl_write_extended_ms_ext() argument
648 MBEDTLS_SSL_CHK_BUF_PTR( p, end, 4 ); in ssl_write_extended_ms_ext()
666 const unsigned char *end, in ssl_write_session_ticket_ext() argument
681 MBEDTLS_SSL_CHK_BUF_PTR( p, end, 4 + tlen ); in ssl_write_session_ticket_ext()
709 const unsigned char *end, in ssl_write_alpn_ext() argument
726 MBEDTLS_SSL_CHK_BUF_PTR( p, end, 6 + alpnlen ); in ssl_write_alpn_ext()
769 const unsigned char *end, in ssl_write_use_srtp_ext() argument
810 MBEDTLS_SSL_CHK_BUF_PTR( p, end, ext_len + 4 ); in ssl_write_use_srtp_ext()
989 const unsigned char *end; in ssl_write_client_hello() local
1023 end = buf + MBEDTLS_SSL_OUT_CONTENT_LEN; in ssl_write_client_hello()
1033 MBEDTLS_SSL_CHK_BUF_PTR( buf, end, 38 + 1 + 32 ); in ssl_write_client_hello()
1146 MBEDTLS_SSL_CHK_BUF_PTR( p, end, 1 ); in ssl_write_client_hello()
1161 MBEDTLS_SSL_CHK_BUF_PTR( p, end, in ssl_write_client_hello()
1179 MBEDTLS_SSL_CHK_BUF_PTR( p, end, 2 ); in ssl_write_client_hello()
1199 MBEDTLS_SSL_CHK_BUF_PTR( p, end, 2 ); in ssl_write_client_hello()
1217 MBEDTLS_SSL_CHK_BUF_PTR( p, end, 2 ); in ssl_write_client_hello()
1229 MBEDTLS_SSL_CHK_BUF_PTR( p, end, 2 ); in ssl_write_client_hello()
1263 MBEDTLS_SSL_CHK_BUF_PTR( p, end, 3 ); in ssl_write_client_hello()
1274 MBEDTLS_SSL_CHK_BUF_PTR( p, end, 2 ); in ssl_write_client_hello()
1281 MBEDTLS_SSL_CHK_BUF_PTR( p, end, 2 ); in ssl_write_client_hello()
1285 end, &olen ) ) != 0 ) in ssl_write_client_hello()
1297 end, &olen ) ) != 0 ) in ssl_write_client_hello()
1308 end, &olen ) ) != 0 ) in ssl_write_client_hello()
1321 end, &olen ) ) != 0 ) in ssl_write_client_hello()
1329 end, &olen ) ) != 0 ) in ssl_write_client_hello()
1340 end, &olen ) ) != 0 ) in ssl_write_client_hello()
1349 if( ( ret = ssl_write_cid_ext( ssl, p + 2 + ext_len, end, &olen ) ) != 0 ) in ssl_write_client_hello()
1359 end, &olen ) ) != 0 ) in ssl_write_client_hello()
1369 end, &olen ) ) != 0 ) in ssl_write_client_hello()
1379 end, &olen ) ) != 0 ) in ssl_write_client_hello()
1389 end, &olen ) ) != 0 ) in ssl_write_client_hello()
1399 end, &olen ) ) != 0 ) in ssl_write_client_hello()
1409 end, &olen ) ) != 0 ) in ssl_write_client_hello()
1419 end, &olen ) ) != 0 ) in ssl_write_client_hello()
2637 unsigned char *end ) in ssl_parse_server_dh_params() argument
2652 p, end ) ) != 0 ) in ssl_parse_server_dh_params()
2726 unsigned char *end ) in ssl_parse_server_ecdh_params_psa() argument
2737 if( end - *p < 4 ) in ssl_parse_server_ecdh_params_psa()
2768 if( (size_t)( end - *p ) < ecpoint_len ) in ssl_parse_server_ecdh_params_psa()
2793 unsigned char *end ) in ssl_parse_server_ecdh_params() argument
2806 (const unsigned char **) p, end ) ) != 0 ) in ssl_parse_server_ecdh_params()
2833 unsigned char *end ) in ssl_parse_server_psk_hint() argument
2844 if( end - (*p) < 2 ) in ssl_parse_server_psk_hint()
2853 if( end - (*p) < len ) in ssl_parse_server_psk_hint()
2968 unsigned char *end, in ssl_parse_signature_algorithm() argument
2982 if( (*p) + 2 > end ) in ssl_parse_signature_algorithm()
3092 unsigned char *p = NULL, *end = NULL; in ssl_parse_server_key_exchange() local
3104 ((void) end); in ssl_parse_server_key_exchange()
3127 ((void) end); in ssl_parse_server_key_exchange()
3187 end = ssl->in_msg + ssl->in_hslen; in ssl_parse_server_key_exchange()
3188 MBEDTLS_SSL_DEBUG_BUF( 3, "server key exchange", p, end - p ); in ssl_parse_server_key_exchange()
3196 if( ssl_parse_server_psk_hint( ssl, &p, end ) != 0 ) in ssl_parse_server_key_exchange()
3221 if( ssl_parse_server_dh_params( ssl, &p, end ) != 0 ) in ssl_parse_server_key_exchange()
3240 if( ssl_parse_server_ecdh_params_psa( ssl, &p, end ) != 0 ) in ssl_parse_server_key_exchange()
3261 if( ssl_parse_server_ecdh_params( ssl, &p, end ) != 0 ) in ssl_parse_server_key_exchange()
3279 p, end - p ); in ssl_parse_server_key_exchange()
3320 if( ssl_parse_signature_algorithm( ssl, &p, end, in ssl_parse_server_key_exchange()
3367 if( p > end - 2 ) in ssl_parse_server_key_exchange()
3379 if( p != end - sig_len ) in ssl_parse_server_key_exchange()