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 v2 0/1] CryptoPkg: Add RSA PSS verify support
Date: Wed, 28 Apr 2021 09:15:19 -0700	[thread overview]
Message-ID: <20210428161520.16876-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

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

Updates from v1:
    - Added SaltLen as argument (Jiewen)
    - Added RsaPssSign support (Jiewen)
    - Added Unit test (Jiewen)
    - Added RSA PSS API in EDK2 Crypto Protocol (Missed in v1)

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                        | 145 +++++++++++++++
 CryptoPkg/Library/BaseCryptLib/Pk/CryptRsaPssNull.c                    |  46 +++++
 CryptoPkg/Library/BaseCryptLib/Pk/CryptRsaPssSign.c                    | 168 +++++++++++++++++
 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, 954 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-04-28 16:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-28 16:15 Agrawal, Sachin [this message]
2021-04-28 16:15 ` [PATCH v2 1/1] CryptoPkg: BaseCryptLib: Add RSA PSS verify support Agrawal, Sachin

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=20210428161520.16876-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