UCL Common Library Reference |
---|
#include <hmac.h>void hmac_md5 (unsignedchar *data,int data_len, unsignedchar *key,int key_len, unsignedchar digest[16]);
HMAC is a cryptographic mechanism for message authentication described in RFC2104. It allows a sender and receiver with a shared cryptographic key to verify the authenticity of a message.
void hmac_md5 (unsignedchar *data,int data_len, unsignedchar *key,int key_len, unsignedchar digest[16]);
Computes MD5 digest
of data
using key key
.
data : | pointer to data stream. |
data_len : | length of data stream in bytes. |
key : | pointer to authentication key. |
key_len : | length of authentication key in bytes. |
digest : | digest to be filled in. |
<<< Overview | MD5 >>> |