Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Friday, April 19, 2024

File: [Platon] / libplaton / platon / hash / hmac.h (download)

Revision 1.2, Fri Dec 26 18:11:22 2008 UTC (15 years, 3 months ago) by nepto


Changes since 1.1: +2 -2 lines

RFC note added

/**
 * 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/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top