9#include "InternalCryptLib.h"
10#include <mbedtls/md5.h>
12#ifdef ENABLE_MD5_DEPRECATED_INTERFACES
29 return (
UINTN)(
sizeof (mbedtls_md5_context));
52 if (Md5Context ==
NULL) {
56 mbedtls_md5_init (Md5Context);
58 Ret = mbedtls_md5_starts (Md5Context);
83 OUT VOID *NewMd5Context
86 if ((Md5Context ==
NULL) || (NewMd5Context ==
NULL)) {
90 mbedtls_md5_clone (NewMd5Context, Md5Context);
116 IN OUT VOID *Md5Context,
123 if (Md5Context ==
NULL) {
127 if ((Data ==
NULL) && (DataSize != 0)) {
131 Ret = mbedtls_md5_update (Md5Context, Data, DataSize);
162 IN OUT VOID *Md5Context,
168 if ((Md5Context ==
NULL) || (HashValue ==
NULL)) {
172 Ret = mbedtls_md5_finish (Md5Context, HashValue);
173 mbedtls_md5_free (Md5Context);
209 if (HashValue ==
NULL) {
213 if ((Data ==
NULL) && (DataSize != 0)) {
217 Ret = mbedtls_md5 (Data, DataSize, HashValue);
BOOLEAN EFIAPI Md5Duplicate(IN CONST VOID *Md5Context, OUT VOID *NewMd5Context)
BOOLEAN EFIAPI Md5Final(IN OUT VOID *Md5Context, OUT UINT8 *HashValue)
BOOLEAN EFIAPI Md5Update(IN OUT VOID *Md5Context, IN CONST VOID *Data, IN UINTN DataSize)
BOOLEAN EFIAPI Md5Init(OUT VOID *Md5Context)
BOOLEAN EFIAPI Md5HashAll(IN CONST VOID *Data, IN UINTN DataSize, OUT UINT8 *HashValue)
UINTN EFIAPI Md5GetContextSize(VOID)