Generate 4Byte MAC

Hi,

I need a help. I want to generate a MAC using " C ". I tried with google. But it's not work. If anyone have a code please post it.

Thank you.
What exactly do you mean by "generate" a MAC?
Are we talking about 'MAC' like in Network Device MAC Address?
Hi,

Sorry for that I mean Message Authentication Code.

I would suggest that you take a look at the OpenSSL library:

http://www.openssl.org/docs/crypto/hmac.html
This is a windows forum, the operating system provides already Crypto API. Of course, if for some reason don't want to use it, thenn OpenSSL is a good choice.

http://msdn.microsoft.com/en-us/library/aa382453%28v=VS.85%29.aspx
http://www.codeproject.com/Articles/22118/C-Class-Implementation-of-HMAC-SHA

Last edited on
Topic archived. No new replies allowed.