MD5 HMAC With OpenSSL
问题 I was trying to generate MD5 HMAC with OpenSSL & most of the code is borrowed. The hmac being generate is incorrect: #include <openssl/hmac.h> #include <openssl/evp.h> #include <syslog.h> #include <string.h> #include <openssl/engine.h> #include <openssl/hmac.h> #include <openssl/evp.h> #include <stdio.h> #include <string.h> #include <stdlib.h> int main() { unsigned char* key = (unsigned char*) "2012121220121212201212122012121220121212201212122012121220121212"; unsigned char* data = (unsigned