/**
* keyed-Hash Message Authentication Codes
*
* @file platon/hash/hmac.h
* @author Oliver Hitz <oliver@net-track.ch> (taken from RFC2104)
* @version \$Platon: libplaton/platon/hash/hmac.h,v 1.1 2008-12-26 17:59:32 nepto Exp $
* @date 2003
*/
#ifndef _PLATON_HASH_HMAC_H
#define _PLATON_HASH_HMAC_H
#ifndef PLATON_FUNC
# define PLATON_FUNC(_name) _name
#endif
#ifndef PLATON_FUNC_STR
# define PLATON_FUNC_STR(_name) #_name
#endif
#ifdef __cplusplus
extern "C" {
#endif
/**
* Creates HMAC-MD5
*
* @param text pointer to data stream
* @param text_len length of data stream
* @param key pointer to authentication key
* @param key_len length of authentication key
* @param digest caller digest to be filled in
*/
void PLATON_FUNC(hmac_md5)(char *text, int text_len, char *key, int key_len, char *digest);
#ifdef __cplusplus
}
#endif
#endif /* #ifndef _PLATON_HASH_HMAC_H */
Platon Group <platon@platon.org> http://platon.org/
|