Codpiece

noun Etymology: Middle English codpese, from cod bag, scrotum (from Old English codd) + pese piece a flap or bag concealing an opening in the front of men's breeches especially in the 15th and 16th centuries

Merriam-Webster's Collegiate Dictionary