A U.S. Navy veteran has been sentenced to 10 years in an Iranian prison, his family’s lawyer said, after he was arrested last July while visiting an Iranian woman in the city of Mashhad.

Michael White, 46, was convicted of two charges, insulting the country’s top leader and posting a private photograph publicly, in separate hearings on March 6 and March 9, according to the lawyer, Mark Zaid.

The basis for the first charge is not yet clear. The second charge appears to have been leveled after White uploaded a picture of himself sitting with the woman, an Iranian national, Zaid said.

Iranian authorities have not released details of the charges. The U.S. State Department said it was aware of White’s detention, but added that it could not provide additional information because of “privacy considerations.”

“We are aware of the detention of a U.S. citizen in Iran,” a State Department official said. “We have no higher priority than the safety and security of U.S. citizens abroad.”

The family learned of the sentence earlier this week from the State Department, which in turn received the information from Swiss diplomats. The Swiss represent U.S. interests in Iran because the countries do not maintain diplomatic ties.

White, a California native, served 13 years in the Navy.

The family and the State Department are still trying to determine whether the charges are politically motivated or the result of a criminal prosecution, Zaid said.

“It’s been very unclear,” he added.