mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
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>
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
#include "compiler.h"
|
||||
|
||||
#define MD5_SUM_LEN 16
|
||||
#define MD5_DEF_CHUNK_SZ 0x10000
|
||||
|
||||
#if defined(CONFIG_MBEDTLS_LIB_CRYPTO)
|
||||
typedef mbedtls_md5_context MD5Context;
|
||||
@@ -30,12 +31,6 @@ void MD5Init(MD5Context *ctx);
|
||||
void MD5Update(MD5Context *ctx, unsigned char const *buf, unsigned int len);
|
||||
void MD5Final(unsigned char digest[16], MD5Context *ctx);
|
||||
|
||||
/*
|
||||
* 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]);
|
||||
|
||||
/*
|
||||
* 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
|
||||
|
||||
Reference in New Issue
Block a user