MOSCOW — President Vladimir V. Putin of Russia said on Wednesday that he would not mind if the White House made public his talks with President Trump at a summit meeting last year, because there was nothing incriminating in their conversations.

Just five days earlier, Mr. Putin’s spokesman had said the Kremlin would not want records of the two presidents’ talks released. But Mr. Putin, a former K.G.B. spy, said his previous job had taught him that any conversation he had could be published.

“Therefore, when they tried to spin another scandal over our meeting with President Trump in Helsinki, we told the administration directly: If someone wants to find out something, publish; we are not against it,” the Russian president said at an energy conference in Moscow. “I can assure you there was nothing there that could compromise President Trump.”

The Kremlin spokesman, Dmitri S. Peskov, said on Friday that Moscow would not want to see Mr. Trump’s and Mr. Putin’s conversations made public, amid the uproar caused by the White House’s release of an account of a call between Mr. Trump and President Volodymyr Zelensky of Ukraine.