Lines Matching refs:md_info
279 const mbedtls_md_info_t *md_info; in tls1_prf() local
300 if( ( md_info = mbedtls_md_info_from_type( MBEDTLS_MD_MD5 ) ) == NULL ) in tls1_prf()
303 if( ( ret = mbedtls_md_setup( &md_ctx, md_info, 1 ) ) != 0 ) in tls1_prf()
331 if( ( md_info = mbedtls_md_info_from_type( MBEDTLS_MD_SHA1 ) ) == NULL ) in tls1_prf()
334 if( ( ret = mbedtls_md_setup( &md_ctx, md_info, 1 ) ) != 0 ) in tls1_prf()
377 const mbedtls_md_info_t *md_info; in tls_prf_generic() local
383 if( ( md_info = mbedtls_md_info_from_type( md_type ) ) == NULL ) in tls_prf_generic()
386 md_len = mbedtls_md_get_size( md_info ); in tls_prf_generic()
399 if ( ( ret = mbedtls_md_setup( &md_ctx, md_info, 1 ) ) != 0 ) in tls_prf_generic()
495 const mbedtls_md_info_t *md_info; in mbedtls_ssl_derive_keys() local
511 md_info = mbedtls_md_info_from_type( transform->ciphersuite_info->mac ); in mbedtls_ssl_derive_keys()
512 if( md_info == NULL ) in mbedtls_ssl_derive_keys()
696 if( ( ret = mbedtls_md_setup( &transform->md_ctx_enc, md_info, 1 ) ) != 0 || in mbedtls_ssl_derive_keys()
697 ( ret = mbedtls_md_setup( &transform->md_ctx_dec, md_info, 1 ) ) != 0 ) in mbedtls_ssl_derive_keys()
704 transform->maclen = mbedtls_md_get_size( md_info ); in mbedtls_ssl_derive_keys()
1213 int md_size = mbedtls_md_get_size( md_ctx->md_info ); in ssl_mac()
1214 int md_type = mbedtls_md_get_type( md_ctx->md_info ); in ssl_mac()