| #ifndef MD5_ENCODE_H_ | |
| #define MD5_ENCODE_H_ | |
| #ifdef __cplusplus | |
| extern "C" { | |
| #endif | |
| //打开文件 | |
| int ota_file_open(char* path, char* flag); | |
| //文件偏移位置 | |
| int ota_file_seek(int handle, int offset, int flag); | |
| //读文件内容 | |
| int ota_file_read(char* buffer, size_t count, int file); | |
| //关闭文件 | |
| void ota_file_close(int handle); | |
| /*** | |
| * @description: 校验文件的MD5 | |
| * @param filePath 文件路径 | |
| * @param file_md5 待校验MD5值 | |
| * @return 0:校验成功; 其他:校验失败 | |
| */ | |
| int md5_file_verfy(char* filePath, char* file_md5); | |
| #ifdef __cplusplus | |
| } | |
| #endif | |
| #endif |