Updated integration of sha256 to the new interface.