The governments of Argentina and Brazil agreed Friday to cooperate more closely on cyber defense in the wake of revelations that U.S. spying extended to Brazilian President Dilma Rousseff.

"We have established that we will hold a meeting in Brasilia before the end of the year to intensify our complementarity in the matter of cyber defense," Argentine Defense Minister Agustin Rossi said after talks with visiting Brazilian counterpart Celso Amorim.

"This system of spying ... warrants, besides the individual efforts that each of our country makes, a complementarity that allows us to diminish situations of vulnerability," Rossi said.

"There is an invitation for an Argentine mission to come to Brazil and that will generate the development of joint projects," Amorim said, adding that both countries have a "great capacity" to produce software suitable for the task.

Rousseff said last Friday that whether she makes a planned state visit to Washington next month depends on Barack Obama's response to the revelations about the U.S. National Security Agency's monitoring of her communications.

The U.S. president "committed himself to responding to the Brazilian government before next Wednesday," Rousseff told the media at the conclusion of the G-20 economic summit in St. Petersburg, where the two heads of state met to discuss the spying.

NSA intercepted telephone calls and e-mails of Rousseff and Mexican leader Enrique Peña Nieto, Brazil's TV Globo reported Sept. 2, citing documents from whistle-blower Edward Snowden.

A week later, Globo aired a story revealing NSA surveillance of Brazilian state oil company Petrobras, prompting a second formal complaint to Washington.

That report was also based on documentation from Snowden, a former NSA contractor who has been working with Brazil-based U.S. journalist Glenn Greenwald. EFE