SHA-1 implementation in C++