Mix flour, cocoa, baking soda, sugar, eggs, oil and buttermilk into a batter and bake in a 23 cm springform at 175°C for about 25 minutes; cool completely.
Bloom the gelatin in 2 tbsp cold water.
Melt the chocolate and stir in the peppermint extract.
Whip 400 ml cream to soft peaks.
Warm the bloomed gelatin until liquid, whisk into the melted chocolate, then fold in the whipped cream.
Pour the mousse over the cooled cake layer, still inside the springform ring, and chill 6 hours or overnight.
Release the ring and top with ganache made from the remaining cream and chocolate, finished with crushed candy canes.