WASHINGTON — An analysis of a Mars rock sample by the Curiosity rover has unveiled minerals, including hydrogen, carbon and oxygen, that are the building blocks of life, NASA said Tuesday.

“A fundamental question for this mission is whether Mars could have supported a habitable environment,” said Michael Meyer, lead scientist for NASA’s Mars Exploration Program. “From what we know now, the answer is yes.”