summaryrefslogtreecommitdiff
path: root/lib/md5.c
diff options
context:
space:
mode:
authorRaymond Mao <raymond.mao@linaro.org>2024-10-03 14:50:17 -0700
committerTom Rini <trini@konsulko.com>2024-10-14 17:58:28 -0600
commit2b6f572958f3e4ab0f5b9dde64dce6ddd477fdab (patch)
tree52ac40f03f04911bac024b9062c742d551fb9201 /lib/md5.c
parent5d1d98399f71a73c1353ed2384293ca14a2d086c (diff)
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 <raymond.mao@linaro.org> Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Reviewed-by: Michal Simek <michal.simek@amd.com>
Diffstat (limited to 'lib/md5.c')
-rw-r--r--lib/md5.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/lib/md5.c b/lib/md5.c
index 584463d55ca..2d8977b2e85 100644
--- a/lib/md5.c
+++ b/lib/md5.c
@@ -263,20 +263,6 @@ MD5Transform(__u32 buf[4], __u32 const in[16])
}
/*
- * 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
* watchdog every 'chunk_sz' bytes of input processed.