diff options
author | Chia-Wei Wang <chiawei_wang@aspeedtech.com> | 2021-07-30 09:08:02 +0800 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-09-01 19:25:37 -0400 |
commit | 74bda4fe3d6d153a6b66b5f1e412c32b718bcfbc (patch) | |
tree | f20c3b3bcfdb2d77661aecde69f5027aa89840ab /include | |
parent | fe68a67a5f11991146f47c2975a4e1156355a92c (diff) | |
download | u-boot-74bda4fe3d6d153a6b66b5f1e412c32b718bcfbc.tar.gz u-boot-74bda4fe3d6d153a6b66b5f1e412c32b718bcfbc.tar.bz2 u-boot-74bda4fe3d6d153a6b66b5f1e412c32b718bcfbc.zip |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/u-boot/md5.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/u-boot/md5.h b/include/u-boot/md5.h index e09c16a6e3..e5cb923d77 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. |