30 lines
752 B
C
30 lines
752 B
C
/***************************************************************
|
|
*
|
|
* Copyright(c) 2005-2007 Shenzhen TP-Link Technologies Co. Ltd.
|
|
* All right reserved.
|
|
*
|
|
* Filename : md5_interface.h
|
|
* Version : 1.0
|
|
* Abstract : md5 make and verify response interface
|
|
* Author : LI SHAOZHANG (lishaozhang@tp-link.net)
|
|
* Created Date : 07/11/2007
|
|
*
|
|
* Modified History:
|
|
***************************************************************/
|
|
|
|
|
|
#ifndef _MD5_INTERFACE_H_
|
|
#define _MD5_INTERFACE_H_
|
|
|
|
#define DES_ENCRYPT 1
|
|
#define DES_DECRYPT 0
|
|
#define MD5_DIGEST_LEN 16
|
|
|
|
void md5_make_digest(unsigned char* digest, unsigned char* input, int len);
|
|
|
|
int md5_verify_digest(unsigned char* digest, unsigned char* input, int len);
|
|
|
|
|
|
#endif /* _MD5_INTERFACE_H_ */
|
|
|