Hello everyone,

I'm currently working on a requirement which suggests concatenating
two hashes( appending one hash to the other), say hash1 and hash2.

How can this be achieved using crypto++ ??

E.g:

SHA256 hash;
SHA256 hash2;
string message1="Hello";
string message2 = "world";

byte digest1[SHA::DIGESTSIZE];
byte digest2[SHA::DIGESTSIZE];

hash.CalculateDigest(digest1,(byte*)
message1.c_str(),message1.length());
hash2.CalculateDigest(digest2,
(byte*)message2.c_str(),message2.length());

// Need to concatenate hash and hash2, i.e. hash2 should be appended
to hash1.

Looking for some help regarding this !!..

Thanks,

Nitin

-- 
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to [email protected].
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.

Reply via email to