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
int hmac_md5(const char *buffer, int buffer_length, const char *key, int key_length, unsigned char digest[MD5_DIGEST_LENGTH])
Generate HMAC using md5 hash function Note that this function produces a digest in binary form which ...
Routines for computing SHA1 checksums.
int hmac_sha1(const char *buffer, int buffer_length, const char *key, int key_length, unsigned char digest[SHA1_DIGEST_LENGTH])
Generate HMAC using sha1 hash function Note that this function produces a digest in binary form which...
Routines for computing MD5 checksums.
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 *))
Generate HMAC.