src.dualinventive.com/jjacobs/dinetrpcll-sniffer/libdi/include/di/crypt/hmac_md5.h

18 lines
609 B
C

/**
* @file crypt/hmac_md5.h
* @brief DI-net HMAC-MD5 implementation
* @date 7 January 2015
* @author ing. R.W.A. van der Heijden
* @copyright 2015 Dual Inventive B.V.
*
* Implementation of the HMAC-MD5 algorithm to provide signature for data-packets
* Signature = HASH(key ^ OPAD , HASH(key ^ IPAD , data))
* Basically this runs down to dual md5-sum with different prepending salts
*/
#ifndef DI_CRYPT_HMAC_MD5_H_
#define DI_CRYPT_HMAC_MD5_H_
void di_crypt_hmac_md5(uint8_t *dest, const uint8_t *key, uint16_t keylength, const uint8_t *msg, uint32_t msglength);
#endif /* DI_CRYPT_HMAC_MD5_H_ */