I'm porting a PHP application to C++. The PHP application is using this function:
hash_hmac — Generate a keyed hash value using the HMAC method
If I have this code, what is it actually doing?
$sStr = hash_hmac ('sha256', $mydata,$mykey, $raw = true)
I know it encrypts some data using sha256 and my key, but how can I perform this in C++?
I've found the hmac and sha2 libraries, but am not sure if they are what I need.