Home
last modified time | relevance | path

Searched refs:cookie_len (Results 1 – 5 of 5) sorted by relevance

/optee_os-3.20.0/lib/libmbedtls/mbedtls/library/
A Dssl_cookie.c195 const unsigned char *cookie, size_t cookie_len, in mbedtls_ssl_cookie_check() argument
207 if( cookie_len != COOKIE_LEN ) in mbedtls_ssl_cookie_check()
A Dssl_cli.c1986 unsigned char cookie_len; in ssl_parse_hello_verify_request() local
2030 cookie_len = *p++; in ssl_parse_hello_verify_request()
2031 if( ( ssl->in_msg + ssl->in_msglen ) - p < cookie_len ) in ssl_parse_hello_verify_request()
2039 MBEDTLS_SSL_DEBUG_BUF( 3, "cookie", p, cookie_len ); in ssl_parse_hello_verify_request()
2043 ssl->handshake->verify_cookie = mbedtls_calloc( 1, cookie_len ); in ssl_parse_hello_verify_request()
2046 MBEDTLS_SSL_DEBUG_MSG( 1, ( "alloc failed (%d bytes)", cookie_len ) ); in ssl_parse_hello_verify_request()
2050 memcpy( ssl->handshake->verify_cookie, p, cookie_len ); in ssl_parse_hello_verify_request()
2051 ssl->handshake->verify_cookie_len = cookie_len; in ssl_parse_hello_verify_request()
A Dssl_srv.c1441 size_t cookie_offset, cookie_len; in ssl_parse_client_hello() local
1792 cookie_len = buf[cookie_offset]; in ssl_parse_client_hello()
1794 if( cookie_offset + 1 + cookie_len + 2 > msg_len ) in ssl_parse_client_hello()
1803 buf + cookie_offset + 1, cookie_len ); in ssl_parse_client_hello()
1813 buf + cookie_offset + 1, cookie_len, in ssl_parse_client_hello()
1829 if( cookie_len != 0 ) in ssl_parse_client_hello()
1842 ciph_offset = cookie_offset + 1 + cookie_len; in ssl_parse_client_hello()
A Dssl_msg.c3271 size_t sid_len, cookie_len; in mbedtls_ssl_check_dtls_clihlo_cookie() local
3331 cookie_len = in[60 + sid_len]; in mbedtls_ssl_check_dtls_clihlo_cookie()
3332 if( 59 + 1 + sid_len + 1 + cookie_len > in_len ) in mbedtls_ssl_check_dtls_clihlo_cookie()
3335 (unsigned) cookie_len, in mbedtls_ssl_check_dtls_clihlo_cookie()
3341 in + sid_len + 61, cookie_len ); in mbedtls_ssl_check_dtls_clihlo_cookie()
3343 in + sid_len + 61, cookie_len, in mbedtls_ssl_check_dtls_clihlo_cookie()
A Dssl_tls.c3916 const unsigned char *cookie, size_t cookie_len, in ssl_cookie_check_dummy() argument
3921 ((void) cookie_len); in ssl_cookie_check_dummy()

Completed in 32 milliseconds