hmac.h

Go to the documentation of this file.
00001 /*
00002 Copyright (C) 2010- The University of Notre Dame
00003 This software is distributed under the GNU General Public License.
00004 See the file COPYING for details.
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
00052 

Generated on Mon Apr 11 10:37:25 2011 for cctools by  doxygen 1.4.7