C implementation of SHA1