John Key was approached by police about his claimed knowledge of the identity of the hacker "Rawshark" but won't say if he cooperated.
The approach came after the Prime Minister said publicly he had been given the name of a person who was said to be the hacker Rawshark.
A spokeswoman for the Prime Minister said: "Police gave the Prime Minister the opportunity to provide any relevant information. The Prime Minister indicated his suspicions on the identity of Rawshark were based on hearsay."
But she would not say whether Mr Key had spoken to police or passed on the "hearsay" information to police.
When it emerged after the election that Mr Key had been told the identity of a person who was believed to be Rawshark, he said he would not pass it on to police.