In addition, I initiated the HMAC-SHA1 process using the following code 
which produced the same output listed in my previous post. I hope this 
helps.
 

const byte pbData [] = "The quick brown fox jumps over the lazy dog";

const byte key [] = "key";

byte pbOutputBuffer[CryptoPP::SHA1::DIGESTSIZE];

CryptoPP::HMAC<CryptoPP::SHA1>(key, 3).CalculateDigest(pbOutputBuffer, 
pbData, 43);

Correct Output:

HMAC_SHA1("key", "The quick brown fox jumps over the lazy dog") = 
0xde7c9b85b8b78aa6bc8a7a36f70a90701c9db4d9

The procedure above produced:

0xde7c9b85b8b78aa6bc8a7a36f7a90701c9db4d9

The output is off by one digit. The version of the library I am using is 
5.6.1.

 

 
 
 

-- 
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