1
0
This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
TP-Link_Archer-XR500v/EN7526G_3.18Kernel_SDK/bootrom/bootram/include/md5_interface.h
2024-07-22 01:58:46 -03:00

37 lines
1010 B
C
Executable File

/***************************************************************
*
* 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 MD5_HASH_SIZE 16
#define MD5_DIGEST_LEN 16
#define BUFLEN_4 4
void md5_make_digest(unsigned char* digest, unsigned char* input, int len);
int md5_verify_digest(unsigned char* digest, unsigned char* input, int len);
void hmac_md5(unsigned char* text, int text_len, unsigned char* key,
int key_len, unsigned char * digest);
unsigned long calc_crc32(const char *buf, unsigned int len);
void getUpdateBootK(unsigned char *pKey);
#endif /* _MD5_INTERFACE_H_ */