moved sha256 code from driver to crtlib