public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Agrawal, Sachin" <sachin.agrawal@intel.com>
To: devel@edk2.groups.io
Cc: Jiewen Yao <jiewen.yao@intel.com>,
	Jian J Wang <jian.j.wang@intel.com>,
	Xiaoyu Lu <xiaoyux.lu@intel.com>,
	Guomin Jiang <guomin.jiang@intel.com>
Subject: [PATCH v3 0/1] CryptoPkg: Add RSA PSS verify support
Date: Tue,  4 May 2021 10:54:44 -0700	[thread overview]
Message-ID: <20210504175445.21980-1-sachin.agrawal@intel.com> (raw)

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

This patch uses Openssl's EVP API's to perform RSASSA-PSS verification
of a binary blob.

Patch v1 Cover Letter :  https://edk2.groups.io/g/devel/message/74286?p=,,,20,0,0,0::Created,,sachin,20,2,0,82225507
Patch v2 Cover Letter :  https://edk2.groups.io/g/devel/message/74565?p=,,,20,0,0,0::Created,,sachin,20,2,0,82434091

https://github.com/sagraw2/edk2/tree/pss_1
https://github.com/sagraw2/edk2/tree/pss_2
https://github.com/sagraw2/edk2/tree/pss_3

Updates from v2:
    - Fixed gcc compilation error [CI System]
	
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Xiaoyu Lu <xiaoyux.lu@intel.com>
Cc: Guomin Jiang <guomin.jiang@intel.com>

Sachin Agrawal (1):
  CryptoPkg: BaseCryptLib: Add RSA PSS verify support

 CryptoPkg/Library/BaseCryptLib/Pk/CryptRsaPss.c                        | 146 +++++++++++++++
 CryptoPkg/Library/BaseCryptLib/Pk/CryptRsaPssNull.c                    |  46 +++++
 CryptoPkg/Library/BaseCryptLib/Pk/CryptRsaPssSign.c                    | 169 +++++++++++++++++
 CryptoPkg/Library/BaseCryptLib/Pk/CryptRsaPssSignNull.c                |  60 ++++++
 CryptoPkg/Library/BaseCryptLibNull/Pk/CryptRsaPssNull.c                |  46 +++++
 CryptoPkg/Library/BaseCryptLibNull/Pk/CryptRsaPssSignNull.c            |  60 ++++++
 CryptoPkg/Library/BaseCryptLibOnProtocolPpi/CryptLib.c                 |  66 +++++++
 CryptoPkg/Test/UnitTest/Library/BaseCryptLib/BaseCryptLibUnitTests.c   |   1 +
 CryptoPkg/Test/UnitTest/Library/BaseCryptLib/RsaPssTests.c             | 191 ++++++++++++++++++++
 CryptoPkg/Test/UnitTest/Library/BaseCryptLib/RsaTests.c                |   2 +
 CryptoPkg/Include/Library/BaseCryptLib.h                               |  74 ++++++++
 CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf                        |   2 +
 CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf                         |   2 +
 CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf                     |   2 +
 CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf                         |   2 +
 CryptoPkg/Library/BaseCryptLib/UnitTestHostBaseCryptLib.inf            |   2 +
 CryptoPkg/Library/BaseCryptLibNull/BaseCryptLibNull.inf                |   2 +
 CryptoPkg/Private/Protocol/Crypto.h                                    |  78 ++++++++
 CryptoPkg/Test/UnitTest/Library/BaseCryptLib/TestBaseCryptLib.h        |   3 +
 CryptoPkg/Test/UnitTest/Library/BaseCryptLib/TestBaseCryptLibHost.inf  |   1 +
 CryptoPkg/Test/UnitTest/Library/BaseCryptLib/TestBaseCryptLibShell.inf |   1 +
 21 files changed, 956 insertions(+)
 create mode 100644 CryptoPkg/Library/BaseCryptLib/Pk/CryptRsaPss.c
 create mode 100644 CryptoPkg/Library/BaseCryptLib/Pk/CryptRsaPssNull.c
 create mode 100644 CryptoPkg/Library/BaseCryptLib/Pk/CryptRsaPssSign.c
 create mode 100644 CryptoPkg/Library/BaseCryptLib/Pk/CryptRsaPssSignNull.c
 create mode 100644 CryptoPkg/Library/BaseCryptLibNull/Pk/CryptRsaPssNull.c
 create mode 100644 CryptoPkg/Library/BaseCryptLibNull/Pk/CryptRsaPssSignNull.c
 create mode 100644 CryptoPkg/Test/UnitTest/Library/BaseCryptLib/RsaPssTests.c

-- 
2.14.3.windows.1


             reply	other threads:[~2021-05-04 17:54 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-04 17:54 Agrawal, Sachin [this message]
2021-05-04 17:54 ` [PATCH v3 1/1] CryptoPkg: BaseCryptLib: Add RSA PSS verify support Agrawal, Sachin
2021-05-05  2:08   ` Yao, Jiewen
2021-05-14  3:46     ` Wang, Jian J
2021-05-17  8:35   ` [edk2-devel] " Ard Biesheuvel
2021-05-17  8:49     ` Yao, Jiewen
2021-05-17 10:34       ` Ard Biesheuvel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210504175445.21980-1-sachin.agrawal@intel.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox