Lines Matching refs:md_ctx
469 mbedtls_md_context_t md_ctx; in tls_prf_generic() local
472 mbedtls_md_init( &md_ctx ); in tls_prf_generic()
495 if ( ( ret = mbedtls_md_setup( &md_ctx, md_info, 1 ) ) != 0 ) in tls_prf_generic()
498 mbedtls_md_hmac_starts( &md_ctx, secret, slen ); in tls_prf_generic()
499 mbedtls_md_hmac_update( &md_ctx, tmp + md_len, nb ); in tls_prf_generic()
500 mbedtls_md_hmac_finish( &md_ctx, tmp ); in tls_prf_generic()
504 mbedtls_md_hmac_reset ( &md_ctx ); in tls_prf_generic()
505 mbedtls_md_hmac_update( &md_ctx, tmp, md_len + nb ); in tls_prf_generic()
506 mbedtls_md_hmac_finish( &md_ctx, h_i ); in tls_prf_generic()
508 mbedtls_md_hmac_reset ( &md_ctx ); in tls_prf_generic()
509 mbedtls_md_hmac_update( &md_ctx, tmp, md_len ); in tls_prf_generic()
510 mbedtls_md_hmac_finish( &md_ctx, tmp ); in tls_prf_generic()
519 mbedtls_md_free( &md_ctx ); in tls_prf_generic()