]> git.proxmox.com Git - mirror_edk2.git/commit
CryptoPkg/BaseCryptLib: remove HmacXxxGetContextSize interface
authorJian J Wang <jian.j.wang@intel.com>
Fri, 17 Jan 2020 03:06:31 +0000 (11:06 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Mon, 20 Jan 2020 16:41:23 +0000 (16:41 +0000)
commit9a1f14ad721bbcd833ec5108944c44a502392f03
tree386b54a2d58d1ee65025e4a36cb9af8418b7bd64
parenta23fdff6fb99bcf7ac226f0a1095c0bdd26b0468
CryptoPkg/BaseCryptLib: remove HmacXxxGetContextSize interface

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1792

Hmac(Md5|Sha1|Sha256)GetContextSize() use a deprecated macro
HMAC_MAX_MD_CBLOCK defined in openssl. They should be dropped to
avoid misuses in the future. For context allocation and release,
use HmacXxxNew() and HmacXxxFree() instead.

Cc: Xiaoyu Lu <xiaoyux.lu@intel.com>
Cc: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Jian J Wang <jian.j.wang@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Xiaoyu Lu <xiaoyux.lu@intel.com>
CryptoPkg/Include/Library/BaseCryptLib.h
CryptoPkg/Library/BaseCryptLib/Hmac/CryptHmacMd5.c
CryptoPkg/Library/BaseCryptLib/Hmac/CryptHmacMd5Null.c
CryptoPkg/Library/BaseCryptLib/Hmac/CryptHmacSha1.c
CryptoPkg/Library/BaseCryptLib/Hmac/CryptHmacSha1Null.c
CryptoPkg/Library/BaseCryptLib/Hmac/CryptHmacSha256.c
CryptoPkg/Library/BaseCryptLib/Hmac/CryptHmacSha256Null.c
CryptoPkg/Library/BaseCryptLibNull/Hmac/CryptHmacMd5Null.c
CryptoPkg/Library/BaseCryptLibNull/Hmac/CryptHmacSha1Null.c
CryptoPkg/Library/BaseCryptLibNull/Hmac/CryptHmacSha256Null.c