Bloom, from cocoa butter or sugar rising to the surface.
If an old chocolate bar has a whitish film or streaks, it's called bloom, and there are two kinds.
Fat bloom looks like gray-white streaks or swirls and feels slightly greasy. It happens when chocolate gets warm and some cocoa butter melts and moves to the surface, then sets again in the wrong crystal form. Poorly tempered chocolate gets it too.
Sugar bloom looks dry and dusty and feels rough. It happens when moisture, often condensation from moving chocolate from a cold fridge to a warm room, dissolves sugar on the surface. When the water evaporates, the sugar recrystallizes as a white coating.
Both kinds are safe to eat. The chocolate may taste and feel a little less smooth, but it hasn't gone bad. Melting bloomed chocolate for baking or hot chocolate makes the problem disappear.
To prevent bloom, store chocolate tightly wrapped in a cool, dry, dark place, ideally around 60 to 68°F (15 to 20°C), away from strong smells.