lib/md5: Export progressive APIs

Export the MD5 hash init/update/finish progressive APIs
for better flexibility.

Signed-off-by: Chia-Wei Wang <chiawei_wang@aspeedtech.com>
This commit is contained in:
Chia-Wei Wang
2021-07-30 09:08:02 +08:00
committed by Tom Rini
parent fe68a67a5f
commit 74bda4fe3d
2 changed files with 7 additions and 3 deletions

View File

@@ -17,6 +17,10 @@ struct MD5Context {
};
};
void MD5Init(struct MD5Context *ctx);
void MD5Update(struct MD5Context *ctx, unsigned char const *buf, unsigned len);
void MD5Final(unsigned char digest[16], struct MD5Context *ctx);
/*
* Calculate and store in 'output' the MD5 digest of 'len' bytes at
* 'input'. 'output' must have enough space to hold 16 bytes.