The crescent shape of Kipferl is often tied in legend to the Ottoman sieges of Vienna.
Unproven but popular.