]> git.dujemihanovic.xyz Git - u-boot.git/commit
md5: Use typedef for MD5 context
authorRaymond Mao <raymond.mao@linaro.org>
Thu, 16 May 2024 21:11:51 +0000 (14:11 -0700)
committerTom Rini <trini@konsulko.com>
Wed, 22 May 2024 14:55:28 +0000 (08:55 -0600)
commit0fe031dd722079cd076cc120d45e1711eb108fe3
tree7c78ca1599a8ca16d4fea27d53b8a53a6c7a8ddb
parent329bb6677bf9cee18d4b87cb067ee832d0bb8e7b
md5: Use typedef for MD5 context

Use of typedef is beneficial for porting with other crypto libs
without changing the API callers.
Secondly, it is for the code consistency with other digest libs.
SHA1, SHA256 and SHA512 are all using typedef for their context.

Signed-off-by: Raymond Mao <raymond.mao@linaro.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
drivers/crypto/hash/hash_sw.c
include/u-boot/md5.h
lib/md5.c