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 
00010 #include <stdlib.h>
00011 
00016 #include "sha1.h"
00017 #include "md5.h"
00018 
00019 
00030 int hmac(const void *buffer, size_t buffer_length, const void *key, size_t key_length, unsigned char *digest, size_t digest_len, size_t block_size, void (*hash_func) (const void *, size_t, unsigned char *));
00031 
00040 int hmac_md5(const void *buffer, size_t buffer_length, const void *key, size_t key_length, unsigned char digest[MD5_DIGEST_LENGTH]);
00041 
00050 int hmac_sha1(const void *buffer, size_t buffer_length, const void *key, size_t key_length, unsigned char digest[SHA1_DIGEST_LENGTH]);
00051 
00052 
00053 #endif

Generated on 27 Oct 2016 for cctools by  doxygen 1.6.1