sha1 cportable implementation
cportable for sha224 and sha256
cportable for sha384 and sha512
Tests fixup