Both Iran and US have signalled that they are prepared for war if talks on Tehran’s nuclear program fizzle out.