Make sha256 pcl compatible, adjust the public interface