Hamas said it is open to the deal, in which all Israeli captives would be released for a ceasefire in Gaza.