How can hmac.c(openssl/crypto/hmac) be used as pseudo random generator (to generate keys) and mac calculation?
For both purpose i.e to generate keys and mac hmac.c is used. During keys 4th parameter of HMAC() is passed 0.AND During mac 4th parameter is message. prf= HMAC( md, key, keylen,(void *) &ZERO, sizeof(int), dummy, &len); mac = HMAC( md, key, keylen, msg, mlen, NULL, &len); I did not get how this is working for key and mac both, -- View this message in context: http://www.nabble.com/hmac.c-t1243771.html#a3293262 Sent from the OpenSSL - User forum at Nabble.com. ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]