cctools
hmac.h
Go to the documentation of this file.
1 /*
2 Copyright (C) 2010- The University of Notre Dame
3 This software is distributed under the GNU General Public License.
4 See the file COPYING for details.
5 */
6 
7 #ifndef HMAC_H_
8 #define HMAC_H_
9 
14 #include "sha1.h"
15 #include "md5.h"
16 
17 
28 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 *));
29 
38 int hmac_md5(const char *buffer, int buffer_length, const char *key, int key_length, unsigned char digest[MD5_DIGEST_LENGTH]);
39 
48 int hmac_sha1(const char *buffer, int buffer_length, const char *key, int key_length, unsigned char digest[SHA1_DIGEST_LENGTH]);
49 
50 
51 #endif