|
Hi
all,
I'm working on a program which uses Crypto++ to calculate hashes from both system files & text strings. Right now I have all the basic hash/checksum algorithms up and working properly. I would now like to add HMAC functionality to the program. The problem is, I can't seem to find any examples to get me started in the right direction. I was hoping somebody out there would be kind enough to show me the code necessary to add HMAC to one of the hashes. I've been mucking around in the validation files that come with the Crypto library, but I'm not making much progress. For one thing, I'm hung up on lines like: HMAC_MD5 mac((byte *)keys[k], strlen(keys[k]));...When I placed it in my code, the compiler comlains that it cant find the "mac(...)" function, and I can't find where it's defined. If anybody out there has a (relatively simple) working implementation of a Crypto++ HMAC algorithm, I'd greatly appreciate a code snippet. Thanks in advance! |
