Example code to compute HMAC SHA1 using OpenSLL.
see: https://en.wikipedia.org/wiki/HMAC
https://csrc.nist.gov/projects/cryptographic-standards-and-guidelines/example-values
The sample reference values have been taken form the NIST site (Message Authentication).
Build with
gcc hmacsha.c -g -llibssl -llibcrypto