Lines Matching refs:hash_len
585 size_t hash_len; in mbedtls_ssl_derive_keys() local
598 hash_len = 48; in mbedtls_ssl_derive_keys()
602 hash_len = 32; in mbedtls_ssl_derive_keys()
606 hash_len = 36; in mbedtls_ssl_derive_keys()
608 MBEDTLS_SSL_DEBUG_BUF( 3, "session hash", session_hash, hash_len ); in mbedtls_ssl_derive_keys()
612 session_hash, hash_len, in mbedtls_ssl_derive_keys()
5029 int ret, hash_len; in mbedtls_ssl_write_finished() local
5052 hash_len = ( ssl->minor_ver == MBEDTLS_SSL_MINOR_VERSION_0 ) ? 36 : 12; in mbedtls_ssl_write_finished()
5055 ssl->verify_data_len = hash_len; in mbedtls_ssl_write_finished()
5056 memcpy( ssl->own_verify_data, ssl->out_msg + 4, hash_len ); in mbedtls_ssl_write_finished()
5059 ssl->out_msglen = 4 + hash_len; in mbedtls_ssl_write_finished()
5154 unsigned int hash_len; in mbedtls_ssl_parse_finished() local
5176 hash_len = 36; in mbedtls_ssl_parse_finished()
5179 hash_len = 12; in mbedtls_ssl_parse_finished()
5182 ssl->in_hslen != mbedtls_ssl_hs_hdr_len( ssl ) + hash_len ) in mbedtls_ssl_parse_finished()
5189 buf, hash_len ) != 0 ) in mbedtls_ssl_parse_finished()
5196 ssl->verify_data_len = hash_len; in mbedtls_ssl_parse_finished()
5197 memcpy( ssl->peer_verify_data, buf, hash_len ); in mbedtls_ssl_parse_finished()