mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-10-11 16:00:19 +00:00
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:
parent
723b91851f
commit
a9f0fc55d1
2 changed files with 61 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue