C++ converting hexadecimal md5 hash to decimal integer
- by Zackery
I'm doing Elgamal Signature Scheme and I need to use the decimal hash value from the message to compute S for signature generation.
string hash = md5(message);
cout << hash << endl;
NTL::ZZ msgHash = strtol(hash.c_str(), NULL, 16);
cout << msgHash << endl;
There are no integer large enough to contain the…