But the pressures facing the two governments appear to be pulling them in different directions.
Growing domestic opposition could encourage President Donald Trump to seek an exit, while Iran's security establishment appears to be consolidating its influence as the crisis deepens.
Neither side appears to have a clear path to ending the war on favorable terms. The question is whether either can accept compromise without appearing to abandon its core strategic objectives.
The Trump administration is seeking to force Tehran into concessions through mounting economic pressure. Beyond the naval blockade, the United States is pushing Iraq to cut Iran's alternative channels for foreign currency and essential imports.
Mohsen Rezaei's recent intervention in Baghdad, warning Iraq against allowing foreign governments to interfere in its economic relationship with Iran, illustrates how seriously Tehran views this pressure.
The more consequential development, however, may be unfolding inside Iran.
Rezaei's expanding role within the Supreme National Security Council suggests the security establishment is preparing for a prolonged confrontation rather than treating the crisis as a temporary emergency.
His appointment of conservative figures to the council's secretariat, with responsibilities covering energy, infrastructure, economic resilience and food security, is particularly noteworthy.
These developments raise questions about the balance of power between the security establishment and President Masoud Pezeshkian's administration.
Although the president formally chairs the Supreme National Security Council, its secretary, Rezaei, represents the supreme leader and plays a key role in coordinating security policy. The council's decisions ultimately require the supreme leader's approval.
There is not enough evidence to conclude that Rezaei is constructing a parallel government. Nevertheless, the expansion of security-linked influence into areas traditionally managed by civilian institutions suggests a further concentration of power within the security establishment.
The debate in Tehran is not necessarily between advocates of confrontation and advocates of accommodation. The more important disagreement may concern how Iran should resist American pressure and when negotiations become advantageous.
Rezaei embodies a security-first approach that emphasizes resilience and rejects concessions under pressure. Mohammad Bagher Ghalibaf, the parliamentary speaker, has framed negotiations as a potential instrument of resistance rather than a departure from it.
These positions are not irreconcilable, but they reflect different institutional responsibilities and assessments of how much pressure Iran can absorb.
The growing influence of security institutions could narrow the role of civilian officials in shaping the terms of a settlement, even as the economic costs of confrontation mount.
By refusing to restore normal shipping without a broader settlement, Tehran is attempting to convert geographical advantage into negotiating leverage. The message is straightforward: the costs of economic pressure will not be borne by Iran alone.
But prolonged restrictions could alienate countries that have favored mediation over confrontation. Iran's geographical leverage is substantial, but overusing it could weaken its economic and diplomatic position.
Washington faces a different kind of constraint. Trump retains considerable authority over foreign policy, but domestic opposition to the conflict is becoming more visible.
Recent polling indicates substantial public resistance to a prolonged confrontation, while Democrats have pledged to challenge the administration's approach when the new Congress takes office in January.
Many Democrats continue to support sanctions and oppose an Iranian nuclear weapon. They are concerned about the costs, objectives and constitutional implications of an open-ended military confrontation.
These pressures could create incentives for Washington to seek a negotiated exit. But Tehran may interpret them differently, as evidence that the United States is less capable of sustaining a prolonged confrontation.
A limited agreement could offer a way out, separating the maritime crisis from the more complex nuclear dispute. Restoring commercial shipping through Hormuz in exchange for some easing of economic restrictions could create space for broader negotiations.
But neither side wants to move first without receiving something tangible in return, and Iran's influential security establishment may be particularly reluctant to offer concessions while under pressure.
Tehran could mistake growing American opposition to the conflict for evidence that Washington will eventually retreat. Washington could interpret Iran's economic difficulties as proof that its leadership is approaching capitulation.
Either assumption could lead to miscalculation.
Tightening the security apparatus may help Iran withstand another war. But it is also being done with an eye on containing the anger of ordinary Iranians being asked to bear the cost of their rulers' endurance.