Iran is working on a new law to formalise the process of crossing the Strait of Hormuz, according to Iranian state media.