Iran's president confirms that a computer worm targeting nuclear program affected centrifuges.