In a small saucepan off the heat, whisk together the sugar and flour. Add the eggs and vanilla and mix well. Add the hot milk and white chocolate. Cook over low heat, stirring constantly and scraping the bottom and sides of the pan, until the mixture thickens. Transfer into a bowl. Cover with plastic wrap directly on the surface of the pastry cream. Let cool, then refrigerate.