C++ SHA1 implementation.