-
1
Put oven rack in middle position and preheat oven to 350F.
-
2
Butter 2 (9- by 2-inch) round cake pans and line bottom of each with a round of parchment or wax paper.
-
3
Butter paper and dust pans with flour, knocking out excess.
-
4
Sift together flour, cocoa, baking soda, and salt into a small bowl.
-
5
Beat together butter and sugars in a large bowl using an electric mixer at medium-high speed until light and fluffy, 3 to 4 minutes in a standing mixer or 4 to 5 minutes with a handheld.
-
6
Add eggs 1 at a time, beating well after each addition.
-
7
Add chocolate and vanilla and beat until just combined.
-
8
Reduce speed to low and add flour mixture and buttermilk alternately in 3 batches, beginning and ending with flour mixture and mixing until just combined.
-
9
Divide batter between cake pans, spreading evenly, and bake until a wooden pick or skewer inserted in center of each cake layer comes out clean, 25 to 35 minutes.
-
10
Cool cake layers in pans on racks 10 minutes.
-
11
Run a thin knife around edge of each layer, then invert onto racks.
-
12
Peel off paper and cool layers completely.
-
13
Heat milk in a 1- to 1 1/2-quart heavy saucepan over moderate heat until hot.
-
14
Whisk together yolks, flour, 1/3 cup confectioners sugar, and a pinch of salt in a bowl, then add hot milk in a stream, whisking.
-
15
Transfer custard to saucepan and bring to a boil over moderate heat, whisking.
-
16
Reduce heat and simmer, whisking, 2 minutes (mixture will be very thick), then transfer to a large bowl.
-
17
Cover surface of custard with a buttered round of wax paper and cool completely, about 45 minutes.
-
18
Add vanilla and remaining cup confectioners sugar to custard and beat with cleaned beaters at moderate speed until combined well, then increase speed to medium-high and beat in butter, 2 tablespoons at a time, until smooth.
-
19
Add chocolates and beat until combined well.
-
20
Halve each cake layer horizontally using a long serrated knife.
-
21
Layer cake, using a heaping 1/2 cup frosting between each layer, then frost top and sides with remaining frosting.