Hi, size_t keyLen, msgLen, macLen; unsigned char *key; const unsigned char* msg; unsigned char *mac [... init ...] HMAC(EVP_sha1(), key, keyLen, msg, msgLen, mac, &macLen);
should do it. Best regards, Martin On Dec 7, 2007 8:13 AM, Tilak Adhya <[EMAIL PROTECTED]> wrote: > Hi, > > I am new to the use of openSSL APIs. I need to use HMAC with SHA1. > But in the source code, I have seen that HMAC is written to work only > with MD5. How to use HMAC with SHA1. Is it possible to use HMAC > with SHA1 hash algorithm, in the existing code of openSSL-HMAC ? > If yes then how...? Do I need to change the source code...? > I am confused, please help me out... > > Awaiting for your reply... > > Thanks in advance. > > Thanks and Regards > Tila > ______________________________________________________________________ > OpenSSL Project http://www.openssl.org > User Support Mailing List openssl-users@openssl.org > Automated List Manager [EMAIL PROTECTED] > ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]