SHA1 implementation in C