9#include "InternalCryptLib.h"
10#include <openssl/md5.h>
12#ifdef ENABLE_MD5_DEPRECATED_INTERFACES
29 return (
UINTN)(
sizeof (MD5_CTX));
53 if (Md5Context ==
NULL) {
60 return (BOOLEAN)(MD5_Init ((MD5_CTX *)Md5Context));
80 OUT VOID *NewMd5Context
86 if ((Md5Context ==
NULL) || (NewMd5Context ==
NULL)) {
90 CopyMem (NewMd5Context, Md5Context,
sizeof (MD5_CTX));
116 IN OUT VOID *Md5Context,
124 if (Md5Context ==
NULL) {
131 if ((Data ==
NULL) && (DataSize != 0)) {
138 return (BOOLEAN)(MD5_Update ((MD5_CTX *)Md5Context, Data, DataSize));
164 IN OUT VOID *Md5Context,
171 if ((Md5Context ==
NULL) || (HashValue ==
NULL)) {
178 return (BOOLEAN)(MD5_Final (HashValue, (MD5_CTX *)Md5Context));
210 if (HashValue ==
NULL) {
214 if ((Data ==
NULL) && (DataSize != 0)) {
221 if (MD5 (Data, DataSize, HashValue) ==
NULL) {
VOID *EFIAPI CopyMem(OUT VOID *DestinationBuffer, IN CONST VOID *SourceBuffer, IN UINTN Length)
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)