New York Times reporter Judith Miller testified before a grand jury Friday, ending her silence in the investigation into whether White House officials leaked the name of a covert CIA operative, Valerie Plame. Miller, out of jail after 85 days, said, "I was a journalist doing my job, protecting my source until my source freed me to perform my civic duty to testify." Escorted by her lawyers and New York Times publisher Arthur O. Sulzberger Jr., Miller met with reporters for several minutes after spending more than four hours inside the courthouse, most of it behind closed doors with a grand jury. Miller had been the only person jailed in a court inquiry examining whether the Bush administration leaked the identity of the undercover CIA officer, possibly as retribution for Plame's husband's claims that the administration twisted prewar intelligence on deposed Iraqi President Saddam Hussein's weapons programs. Miller said she agreed to meet with the grand jury after hearing "directly from my source" by telephone and in a letter that she should cooperate with the investigation by prosecutor Patrick Fitzgerald. "I concluded from this that my source genuinely wanted me to testify," she told reporters. "I served 85 days in jail because of my belief in the importance of upholding the confidential relationship journalists have with their sources," Miller said. "Believe me, I did not want to be in jail. But I would have stayed even longer." As part of the deal, Fitzgerald agreed in advance that he would limit Miller's testimony to her communications with her source "and that was very important to me," Miller added. "I know what my conscience would allow and ... I stood fast to that," the reporter said. Miller's testimony has been characterized by Fitzgerald as key to his investigation into the White House role in the disclosure of Plame's identity. Although Miller declined to identify her source, the New York Times identified him as Lewis "Scooter" Libby, chief of staff to Vice President Dick Cheney. Until a few months ago, the White House had maintained for nearly two years that Libby and presidential aide Karl Rove were not involved in leaking the identity of Plame. The timing of the criticism by Plame's husband, former Ambassador Joseph Wilson, was devastating for the White House, which was already on the defensive because no weapons of mass destruction had been found in Iraq. The president's claims of such weapons were the main justification for going to war. Libby met with Miller just two days after Wilson blasted the Bush administration in a Times op-ed piece. Time magazine reporter Matthew Cooper has testified recently that Rove and Libby had spoken to him about Wilson's wife that same week in July 2003 when Miller spoke to Libby. In October 2003, with the criminal investigation gaining speed, White House spokesman Scott McClellan said of Rove and Libby: "Those individuals assured me they were not involved in this" leaking of Plame's identity. Miller, released from jail Thursday night, had been in custody in Alexandria, Va., since July 6. A federal judge ordered her jailed for civil contempt of court when she refused to testify. The disclosure of Plame's identity by syndicated columnist Robert Novak on July 14, 2003, triggered the criminal investigation that could still result in charges against government officials.