audk/CryptoPkg/Library/BaseCryptLib
Jian J Wang a23fdff6fb CryptoPkg/BaseCryptLib: replace HmacXxxInit API with HmacXxxSetKey
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1792

HmacXxxInit() is supposed to be initialize user supplied buffer as HMAC
context, as well as user supplied key. Currently it has no real use cases.

Due to BZ1792, the user has no way to get correct size of context buffer
after it's fixed, and then cannot make use of HmacXxxInit to initialize
it.

So it's decided to replace it with HmacXxxSetKey to keep the functionality
of supplying a key to HMAC, but drop all other initialization works. The
user can still get HMAC context via HmacXxxNew interface, which hides the
details about the context.

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>
2020-01-20 16:41:23 +00:00
..
Cipher CryptoPkg: Replace BSD License with BSD+Patent License 2019-04-09 09:10:22 -07:00
Hash CryptoPkg/BaseCryptLib: Wrap OpenSSL SM3 algorithm 2019-06-08 05:18:41 +08:00
Hmac CryptoPkg/BaseCryptLib: replace HmacXxxInit API with HmacXxxSetKey 2020-01-20 16:41:23 +00:00
Kdf CryptoPkg: Fix coding style 2019-08-19 08:45:29 +08:00
Pem CryptoPkg: Replace BSD License with BSD+Patent License 2019-04-09 09:10:22 -07:00
Pk CryptoPkg: Support for SHA384 & SHA512 RSA signing schemes 2020-01-08 06:57:44 +00:00
Rand CryptoPkg/BaseCryptLib: remove unused code for IPF 2019-05-17 13:13:41 +08:00
SysCall CryptoPkg/Crt: import "inet_pton.c" (CVE-2019-14553) 2019-11-02 12:07:59 +01:00
BaseCryptLib.inf CryptoPkg CryptoLib: Update tool chain name to CLANGPDB 2019-11-15 06:04:21 +00:00
BaseCryptLib.uni CryptoPkg: Replace BSD License with BSD+Patent License 2019-04-09 09:10:22 -07:00
InternalCryptLib.h CryptoPkg: Replace BSD License with BSD+Patent License 2019-04-09 09:10:22 -07:00
PeiCryptLib.inf CryptoPkg CryptoLib: Update tool chain name to CLANGPDB 2019-11-15 06:04:21 +00:00
PeiCryptLib.uni CryptoPkg: Replace BSD License with BSD+Patent License 2019-04-09 09:10:22 -07:00
RuntimeCryptLib.inf CryptoPkg CryptoLib: Update tool chain name to CLANGPDB 2019-11-15 06:04:21 +00:00
RuntimeCryptLib.uni CryptoPkg: Replace BSD License with BSD+Patent License 2019-04-09 09:10:22 -07:00
SmmCryptLib.inf CryptoPkg CryptoLib: Update tool chain name to CLANGPDB 2019-11-15 06:04:21 +00:00
SmmCryptLib.uni CryptoPkg: Replace BSD License with BSD+Patent License 2019-04-09 09:10:22 -07:00