codecs: add md5_file API

Add the API for 'md5_file' to directly obtain the digest value by passing in the file path

Signed-off-by: wangmingrong <wangmingrong@xiaomi.com>
This commit is contained in:
wangmingrong 2023-08-28 16:14:58 +08:00 • committed by Xiang Xiao
parent 723b91851f
commit a9f0fc55d1
2 changed files with 61 additions and 0 deletions

View file

@ -95,6 +95,7 @@ void md5_final(unsigned char digest[16], struct md5_context_s *context);
void md5_transform(uint32_t buf[4], uint32_t const in[16]);
void md5_sum(const uint8_t *addr, const size_t len, uint8_t *mac);
int md5_file(const char *path, uint8_t *mac);
char *md5_hash(const uint8_t *addr, const size_t len);
#ifdef __cplusplus