RIO DE JANEIRO -- A Brazilian television report that aired Sunday night said Canadian spies targeted Brazil's Mines and Energy Ministry.

The report on Globo television was based on documents leaked by former National Security Agency contractor Edward Snowden and was the latest showing that Latin America's biggest nation has been a target for U.S., British and now Canadian spy agencies.

The report said the "metadata" of phone calls and emails from and to the Brazilian ministry were targeted by Canada's Communications Security Establishment to map the ministry's communications, using a software program called Olympia. It didn't indicate if emails were read or phone calls listened to.

Brazilian Mines and Energy Minister Edison Lobao told Globo that "Canada has interests in Brazil, above all in the mining sector. I can't say if the spying served corporate interests or other groups."

American journalist Glenn Greenwald, based in Rio de Janeiro, worked with Globo on its report. Greenwald broke the first stories about the NSA's global spy program focusing on Internet traffic and phone calls.

Globo previously reported that the communications of Brazilian President Dilma Rousseff and also state-run oil company Petrobras were targeted by NSA spying.

Earlier, Greenwald wrote articles in the O Globo newspaper saying that the NSA was gathering metadata on billions of emails, phone calls and other Internet data flowing through Brazil, an important transit point for global communications.

The fallout over the spy programs led Rousseff last month to cancel a planned visit to the U.S., where she was to be the guest of honor for a state dinner.

Rousseff last month spoke at the United Nations General Assembly and called for international regulations on data privacy and limiting espionage programs targeting the Internet.