The peridium is the protective layer that encloses a mass of spores in fungi, as is the case with the black truffle.