[edk2-devel] [PATCH V2 0/4] CryptoPkg: Add Hkdf SHA384 support

Qi Zhang posted 4 patches 1 year, 6 months ago
Failed in applying to current master (apply log)
CryptoPkg/Driver/Crypto.c                     | 152 +++++++-
CryptoPkg/Include/Library/BaseCryptLib.h      | 129 +++++++
.../Pcd/PcdCryptoServiceFamilyEnable.h        |   7 +-
.../Library/BaseCryptLib/Kdf/CryptHkdf.c      | 362 +++++++++++++++++-
.../Library/BaseCryptLib/Kdf/CryptHkdfNull.c  | 151 +++++++-
.../BaseCryptLibNull/Kdf/CryptHkdfNull.c      | 151 +++++++-
.../BaseCryptLibOnProtocolPpi/CryptLib.c      | 144 +++++++
CryptoPkg/Private/Protocol/Crypto.h           | 139 ++++++-
.../BaseCryptLib/BaseCryptLibUnitTests.c      |  29 +-
.../UnitTest/Library/BaseCryptLib/HkdfTests.c | 202 ++++++++++
.../Library/BaseCryptLib/TestBaseCryptLib.h   |   3 +
.../BaseCryptLib/TestBaseCryptLibHost.inf     |   1 +
.../BaseCryptLib/TestBaseCryptLibShell.inf    |   1 +
13 files changed, 1440 insertions(+), 31 deletions(-)
create mode 100644 CryptoPkg/Test/UnitTest/Library/BaseCryptLib/HkdfTests.c
[edk2-devel] [PATCH V2 0/4] CryptoPkg: Add Hkdf SHA384 support
Posted by Qi Zhang 1 year, 6 months ago
Add Hkdf-SHA384 support and Hkdf-SHA256 extract and expand separately.
With this change, the size increase of BaseCyrptLib is about 6K bytes.
The new functions are verifed by the Host UnitTest.
And also it has been integratd in
https://github.com/tianocore/edk2-staging/tree/DeviceSecurity and been
verified.

All the code change is on the PR https://github.com/tianocore/edk2/pull/3224.

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

Signed-off-by: Qi Zhang <qi1.zhang@intel.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Xiaoyu Lu <xiaoyu1.lu@intel.com>
Cc: Guomin Jiang <guomin.jiang@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>

Qi Zhang (4):
  CryptoPkg: add new Hkdf api definition in Crypt Lib.
  CryptoPkg: add new Hkdf api in Crypt Lib.
  CryptoPkg: add new Hkdf api to Crypto Service.
  CryptoPkg: add Hkdf UnitTest.

 CryptoPkg/Driver/Crypto.c                     | 152 +++++++-
 CryptoPkg/Include/Library/BaseCryptLib.h      | 129 +++++++
 .../Pcd/PcdCryptoServiceFamilyEnable.h        |   7 +-
 .../Library/BaseCryptLib/Kdf/CryptHkdf.c      | 362 +++++++++++++++++-
 .../Library/BaseCryptLib/Kdf/CryptHkdfNull.c  | 151 +++++++-
 .../BaseCryptLibNull/Kdf/CryptHkdfNull.c      | 151 +++++++-
 .../BaseCryptLibOnProtocolPpi/CryptLib.c      | 144 +++++++
 CryptoPkg/Private/Protocol/Crypto.h           | 139 ++++++-
 .../BaseCryptLib/BaseCryptLibUnitTests.c      |  29 +-
 .../UnitTest/Library/BaseCryptLib/HkdfTests.c | 202 ++++++++++
 .../Library/BaseCryptLib/TestBaseCryptLib.h   |   3 +
 .../BaseCryptLib/TestBaseCryptLibHost.inf     |   1 +
 .../BaseCryptLib/TestBaseCryptLibShell.inf    |   1 +
 13 files changed, 1440 insertions(+), 31 deletions(-)
 create mode 100644 CryptoPkg/Test/UnitTest/Library/BaseCryptLib/HkdfTests.c

-- 
2.26.2.windows.1



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#94169): https://edk2.groups.io/g/devel/message/94169
Mute This Topic: https://groups.io/mt/93865230/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-
Re: [edk2-devel] [PATCH V2 0/4] CryptoPkg: Add Hkdf SHA384 support
Posted by Yao, Jiewen 1 year, 6 months ago
Merged https://github.com/tianocore/edk2/pull/3387

> -----Original Message-----
> From: Zhang, Qi1 <qi1.zhang@intel.com>
> Sent: Friday, September 23, 2022 2:25 PM
> To: devel@edk2.groups.io
> Cc: Zhang, Qi1 <qi1.zhang@intel.com>; Yao, Jiewen
> <jiewen.yao@intel.com>; Wang, Jian J <jian.j.wang@intel.com>; Lu, Xiaoyu1
> <xiaoyu1.lu@intel.com>; Jiang, Guomin <guomin.jiang@intel.com>
> Subject: [PATCH V2 0/4] CryptoPkg: Add Hkdf SHA384 support
> 
> Add Hkdf-SHA384 support and Hkdf-SHA256 extract and expand separately.
> With this change, the size increase of BaseCyrptLib is about 6K bytes.
> The new functions are verifed by the Host UnitTest.
> And also it has been integratd in
> https://github.com/tianocore/edk2-staging/tree/DeviceSecurity and been
> verified.
> 
> All the code change is on the PR
> https://github.com/tianocore/edk2/pull/3224.
> 
> REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4033
> 
> Signed-off-by: Qi Zhang <qi1.zhang@intel.com>
> Cc: Jiewen Yao <jiewen.yao@intel.com>
> Cc: Jian J Wang <jian.j.wang@intel.com>
> Cc: Xiaoyu Lu <xiaoyu1.lu@intel.com>
> Cc: Guomin Jiang <guomin.jiang@intel.com>
> Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
> 
> Qi Zhang (4):
>   CryptoPkg: add new Hkdf api definition in Crypt Lib.
>   CryptoPkg: add new Hkdf api in Crypt Lib.
>   CryptoPkg: add new Hkdf api to Crypto Service.
>   CryptoPkg: add Hkdf UnitTest.
> 
>  CryptoPkg/Driver/Crypto.c                     | 152 +++++++-
>  CryptoPkg/Include/Library/BaseCryptLib.h      | 129 +++++++
>  .../Pcd/PcdCryptoServiceFamilyEnable.h        |   7 +-
>  .../Library/BaseCryptLib/Kdf/CryptHkdf.c      | 362 +++++++++++++++++-
>  .../Library/BaseCryptLib/Kdf/CryptHkdfNull.c  | 151 +++++++-
>  .../BaseCryptLibNull/Kdf/CryptHkdfNull.c      | 151 +++++++-
>  .../BaseCryptLibOnProtocolPpi/CryptLib.c      | 144 +++++++
>  CryptoPkg/Private/Protocol/Crypto.h           | 139 ++++++-
>  .../BaseCryptLib/BaseCryptLibUnitTests.c      |  29 +-
>  .../UnitTest/Library/BaseCryptLib/HkdfTests.c | 202 ++++++++++
>  .../Library/BaseCryptLib/TestBaseCryptLib.h   |   3 +
>  .../BaseCryptLib/TestBaseCryptLibHost.inf     |   1 +
>  .../BaseCryptLib/TestBaseCryptLibShell.inf    |   1 +
>  13 files changed, 1440 insertions(+), 31 deletions(-)
>  create mode 100644
> CryptoPkg/Test/UnitTest/Library/BaseCryptLib/HkdfTests.c
> 
> --
> 2.26.2.windows.1



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#94202): https://edk2.groups.io/g/devel/message/94202
Mute This Topic: https://groups.io/mt/93865230/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-