public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH V2 0/3] CryptoPkg: Add EC key retrieving and signature interface.
@ 2022-10-12  2:47 Qi Zhang
  2022-10-12  2:47 ` [PATCH V2 1/3] " Qi Zhang
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Qi Zhang @ 2022-10-12  2:47 UTC (permalink / raw)
  To: devel; +Cc: Qi Zhang, Jiewen Yao, Jian J Wang, Xiaoyu Lu, Guomin Jiang

This patch is used to retrieve EC key from PEM and X509 and
carry out the EC-DSA signature and verify it.

The interface was tested by:
1. DeviceSecurity on edk2-staging
https://github.com/tianocore/edk2-staging/tree/DeviceSecurity.
2. Unit test in CryptoPkg/Test

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4102
PR: https://github.com/tianocore/edk2/pull/3464

V2 change: change the protocol version.

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>
Signed-off-by: Qi Zhang <qi1.zhang@intel.com>

Qi Zhang (3):
  CryptoPkg: Add EC key retrieving and signature interface.
  CryptoPkg: Add EC key interface to DXE and protocol
  CryptoPkg: add unit test for EC key interface.

 CryptoPkg/Driver/Crypto.c                     | 143 +++++++++-
 CryptoPkg/Include/Library/BaseCryptLib.h      | 129 +++++++++
 .../Pcd/PcdCryptoServiceFamilyEnable.h        |   4 +
 CryptoPkg/Library/BaseCryptLib/Pem/CryptPem.c |  87 ++++++
 .../Library/BaseCryptLib/Pem/CryptPemNull.c   |  30 ++
 CryptoPkg/Library/BaseCryptLib/Pk/CryptEc.c   | 258 ++++++++++++++++++
 .../Library/BaseCryptLib/Pk/CryptEcNull.c     |  82 ++++++
 CryptoPkg/Library/BaseCryptLib/Pk/CryptX509.c |  83 ++++++
 .../Library/BaseCryptLib/Pk/CryptX509Null.c   |  28 ++
 .../BaseCryptLibNull/Pem/CryptPemNull.c       |  30 ++
 .../Library/BaseCryptLibNull/Pk/CryptEcNull.c |  82 ++++++
 .../BaseCryptLibNull/Pk/CryptX509Null.c       |  28 ++
 .../BaseCryptLibOnProtocolPpi/CryptLib.c      | 136 +++++++++
 CryptoPkg/Private/Protocol/Crypto.h           | 131 ++++++++-
 .../UnitTest/Library/BaseCryptLib/EcTests.c   | 156 +++++++++++
 15 files changed, 1405 insertions(+), 2 deletions(-)

-- 
2.26.2.windows.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-10-12  5:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-12  2:47 [PATCH V2 0/3] CryptoPkg: Add EC key retrieving and signature interface Qi Zhang
2022-10-12  2:47 ` [PATCH V2 1/3] " Qi Zhang
2022-10-12  2:47 ` [PATCH V2 2/3] CryptoPkg: Add EC key interface to DXE and protocol Qi Zhang
2022-10-12  2:48 ` [PATCH V2 3/3] CryptoPkg: add unit test for EC key interface Qi Zhang
2022-10-12  5:57 ` [PATCH V2 0/3] CryptoPkg: Add EC key retrieving and signature interface Yao, Jiewen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox