From 74bda4fe3d6d153a6b66b5f1e412c32b718bcfbc Mon Sep 17 00:00:00 2001 From: Chia-Wei Wang Date: Fri, 30 Jul 2021 09:08:02 +0800 Subject: lib/md5: Export progressive APIs Export the MD5 hash init/update/finish progressive APIs for better flexibility. Signed-off-by: Chia-Wei Wang --- include/u-boot/md5.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') diff --git a/include/u-boot/md5.h b/include/u-boot/md5.h index e09c16a6e3f..e5cb923d770 100644 --- a/include/u-boot/md5.h +++ b/include/u-boot/md5.h @@ -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. -- cgit v1.2.3