mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-29 16:44:10 +02:00
CryptoPkg: Make the MD5 disable as default for security
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3021 Make the deprecated MD5 disable as default setting for security. Cc: Jiewen Yao <jiewen.yao@intel.com> Cc: Jian J Wang <jian.j.wang@intel.com> Cc: Xiaoyu Lu <xiaoyux.lu@intel.com> Cc: Guomin Jiang <guomin.jiang@intel.com> Signed-off-by: Zhichao Gao <zhichao.gao@intel.com> Reviewed-by: Jiewen Yao <Jiewen.yao@intel.com> Message-Id: <20201112055558.2348-14-zhichao.gao@intel.com>
This commit is contained in:
parent
4ecb1ba5ef
commit
e6a12a0fc8
@ -243,7 +243,7 @@ DeprecatedCryptoServiceMd4HashAll (
|
||||
return BaseCryptLibServiceDeprecated ("Md4HashAll"), FALSE;
|
||||
}
|
||||
|
||||
#ifdef DISABLE_MD5_DEPRECATED_INTERFACES
|
||||
#ifndef ENABLE_MD5_DEPRECATED_INTERFACES
|
||||
/**
|
||||
Retrieves the size, in bytes, of the context buffer required for MD5 hash operations.
|
||||
|
||||
@ -4494,7 +4494,7 @@ const EDKII_CRYPTO_PROTOCOL mEdkiiCrypto = {
|
||||
DeprecatedCryptoServiceMd4Update,
|
||||
DeprecatedCryptoServiceMd4Final,
|
||||
DeprecatedCryptoServiceMd4HashAll,
|
||||
#ifdef DISABLE_MD5_DEPRECATED_INTERFACES
|
||||
#ifndef ENABLE_MD5_DEPRECATED_INTERFACES
|
||||
/// Md5 - deprecated and unsupported
|
||||
DeprecatedCryptoServiceMd5GetContextSize,
|
||||
DeprecatedCryptoServiceMd5Init,
|
||||
|
@ -72,7 +72,7 @@ typedef enum {
|
||||
// One-Way Cryptographic Hash Primitives
|
||||
//=====================================================================================
|
||||
|
||||
#ifndef DISABLE_MD5_DEPRECATED_INTERFACES
|
||||
#ifdef ENABLE_MD5_DEPRECATED_INTERFACES
|
||||
/**
|
||||
Retrieves the size, in bytes, of the context buffer required for MD5 hash operations.
|
||||
|
||||
|
@ -9,7 +9,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
#include "InternalCryptLib.h"
|
||||
#include <openssl/md5.h>
|
||||
|
||||
#ifndef DISABLE_MD5_DEPRECATED_INTERFACES
|
||||
#ifdef ENABLE_MD5_DEPRECATED_INTERFACES
|
||||
/**
|
||||
Retrieves the size, in bytes, of the context buffer required for MD5 hash operations.
|
||||
|
||||
|
@ -99,7 +99,7 @@ CryptoServiceNotAvailable (
|
||||
// One-Way Cryptographic Hash Primitives
|
||||
//=====================================================================================
|
||||
|
||||
#ifndef DISABLE_MD5_DEPRECATED_INTERFACES
|
||||
#ifdef ENABLE_MD5_DEPRECATED_INTERFACES
|
||||
/**
|
||||
Retrieves the size, in bytes, of the context buffer required for MD5 hash operations.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user