blob: d106eac0400528ac141e222223c36b78c09ef022 [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001#ifndef MD5_ENCODE_H_
2#define MD5_ENCODE_H_
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
8
9//打开文件
10int ota_file_open(char* path, char* flag);
11//文件偏移位置
12int ota_file_seek(int handle, int offset, int flag);
13//读文件内容
14int ota_file_read(char* buffer, size_t count, int file);
15//关闭文件
16void ota_file_close(int handle);
17
18
19/*** 
20 * @description: 校验文件的MD5
21 * @param filePath 文件路径
22 * @param file_md5 待校验MD5值
23 * @return 0:校验成功; 其他:校验失败
24 */
25int lynq_md5_file_verfy(char* filePath, char* file_md5);
26
27
28#ifdef __cplusplus
29}
30#endif
31
32
33#endif