Re: [edk2-devel] [PATCH v3 1/2] CryptoPkg/BaseCryptLib: replace HmacXxxInit API with HmacXxxSetKey

2020-01-16 Thread Wang, Jian J
Laszlo, Thanks for catching the problem. I'll fix them before push. Regards, Jian > -Original Message- > From: Laszlo Ersek > Sent: Thursday, January 16, 2020 5:08 PM > To: Wang, Jian J ; devel@edk2.groups.io > Cc: Lu, XiaoyuX > Subject: Re: [PATCH v3 1/2] CryptoPkg/BaseCryptLib:

Re: [edk2-devel] [PATCH v3 1/2] CryptoPkg/BaseCryptLib: replace HmacXxxInit API with HmacXxxSetKey

2020-01-16 Thread Laszlo Ersek
Hi Jian, On 01/16/20 07:10, Jian J Wang wrote: > 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

[edk2-devel] [PATCH v3 1/2] CryptoPkg/BaseCryptLib: replace HmacXxxInit API with HmacXxxSetKey

2020-01-15 Thread Wang, Jian J
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,