replace sha1 source code from unlicensed code to rfc 3174 code.