Lines Matching refs:md_alg

2020             mbedtls_md_type_t md_alg = mbedtls_ssl_sig_hash_set_find( &ssl->handshake->hash_algs,  in ssl_parse_client_hello()  local
2023 mbedtls_ssl_hash_from_md_alg( md_alg ) ) ); in ssl_parse_client_hello()
3102 mbedtls_md_type_t md_alg; in ssl_prepare_server_key_exchange() local
3112 ( md_alg = mbedtls_ssl_sig_hash_set_find( &ssl->handshake->hash_algs, in ssl_prepare_server_key_exchange()
3128 md_alg = MBEDTLS_MD_SHA1; in ssl_prepare_server_key_exchange()
3135 md_alg = MBEDTLS_MD_NONE; in ssl_prepare_server_key_exchange()
3138 MBEDTLS_SSL_DEBUG_MSG( 3, ( "pick hash algorithm %d for signing", md_alg ) ); in ssl_prepare_server_key_exchange()
3145 if( md_alg == MBEDTLS_MD_NONE ) in ssl_prepare_server_key_exchange()
3159 if( md_alg != MBEDTLS_MD_NONE ) in ssl_prepare_server_key_exchange()
3164 md_alg ); in ssl_prepare_server_key_exchange()
3201 mbedtls_ssl_hash_from_md_alg( md_alg ); in ssl_prepare_server_key_exchange()
3212 md_alg, hash, hashlen ); in ssl_prepare_server_key_exchange()
3243 md_alg, hash, hashlen, in ssl_prepare_server_key_exchange()
4026 mbedtls_md_type_t md_alg; in ssl_parse_certificate_verify() local
4074 md_alg = MBEDTLS_MD_NONE; in ssl_parse_certificate_verify()
4083 md_alg = MBEDTLS_MD_SHA1; in ssl_parse_certificate_verify()
4101 md_alg = mbedtls_ssl_md_alg_from_hash( ssl->in_msg[i] ); in ssl_parse_certificate_verify()
4103 if( md_alg == MBEDTLS_MD_NONE || mbedtls_ssl_set_calc_verify_md( ssl, ssl->in_msg[i] ) ) in ssl_parse_certificate_verify()
4111 if( MBEDTLS_MD_SHA1 == md_alg ) in ssl_parse_certificate_verify()
4168 md_alg, hash_start, hashlen, in ssl_parse_certificate_verify()