Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007 #ifndef HMAC_H_
00008 #define HMAC_H_
00009
00014 #include "sha1.h"
00015 #include "md5.h"
00016
00017
00028 int hmac(const char *buffer, int buffer_length, const char *key, int key_length, unsigned char *digest, int digest_len, int block_size, void (*hash_func) (const char *, int, unsigned char *));
00029
00038 int hmac_md5(const char *buffer, int buffer_length, const char *key, int key_length, unsigned char digest[MD5_DIGEST_LENGTH]);
00039
00048 int hmac_sha1(const char *buffer, int buffer_length, const char *key, int key_length, unsigned char digest[SHA1_DIGEST_LENGTH]);
00049
00050
00051 #endif