President Hassan Rouhani meeting Nechirvan Barzani

Iranian officials on Sunday voiced support for efforts to end a dispute in neighbouring Iraq sparked by a Kurdish referendum on independence last year and underscored the need for Iraqi unity.

President Hassan Rouhani and the secretary of the Supreme National Security Council, Ali Shamkhani, made the comments during talks in Tehran with the prime minister of Iraq's Kurdish autonomous region.

Rouhani told Nechirvan Barzani that Tehran backs "a united Iraq" in which "the legal and legitimate rights" of the Kurdish people are recognised in line with the constitution, the presidency said.Shamkhani said Tehran "will do everything in its power to support efforts to ease the differences" between Baghdad and the Kurdish regional capital Arbil, official IRNA news agency reported.

Iraq's Kurds voted overwhelmingly in September to establish their own country but the non-binding vote was deemed illegal by the federal government in Baghdad which took retaliatory measures.

The referendum was also condemned in neighbouring Iran and Turkey.

On Saturday, Barzani met Iraqi Prime Minister Haider al-Abadi in Baghdad for the first time since the failed push by the Kurds to secede.

A statement from Abadi's office said they discussed the "political and security situation and ways of settling disputes".

After September's vote, Baghdad imposed an air blockade on international flights to the Kurdish autonomous region's two main airports and retook disputed areas, including oil fields from which the Kurds derived the bulk of their revenue.

Shamkhani said Tehran hoped to "contribute to the success" of the dialogue that has opened between Baghdad and Arbil.