From 2b6f572958f3e4ab0f5b9dde64dce6ddd477fdab Mon Sep 17 00:00:00 2001 From: Raymond Mao Date: Thu, 3 Oct 2024 14:50:17 -0700 Subject: md5: Remove md5 non-watchdog API We don't need an API specially for non-watchdog since md5_wd supports it by disabling CONFIG_HW_WATCHDOG and CONFIG_WATCHDOG. Set 0x10000 as default chunk size for MD5. Signed-off-by: Raymond Mao Reviewed-by: Ilias Apalodimas Reviewed-by: Michal Simek --- lib/md5.c | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'lib') diff --git a/lib/md5.c b/lib/md5.c index 584463d55ca..2d8977b2e85 100644 --- a/lib/md5.c +++ b/lib/md5.c @@ -262,20 +262,6 @@ MD5Transform(__u32 buf[4], __u32 const in[16]) buf[3] += d; } -/* - * Calculate and store in 'output' the MD5 digest of 'len' bytes at - * 'input'. 'output' must have enough space to hold 16 bytes. - */ -void -md5 (unsigned char *input, int len, unsigned char output[16]) -{ - MD5Context context; - - MD5Init(&context); - MD5Update(&context, input, len); - MD5Final(output, &context); -} - /* * Calculate and store in 'output' the MD5 digest of 'len' bytes at 'input'. * 'output' must have enough space to hold 16 bytes. If 'chunk' Trigger the -- cgit v1.3.1