From: "Chris Ruffin via groups.io" <cruffin=millcore.com@groups.io>
To: devel@edk2.groups.io
Cc: Chris Ruffin <v-chruffin@microsoft.com>
Subject: [edk2-devel] [PATCH v2 0/3] CryptoPkg/BaseCryptLib: add additional RSAES-OAEP crypto functions
Date: Sat, 30 Mar 2024 17:59:42 -0400 [thread overview]
Message-ID: <cover.1711833672.git.v-chruffin@microsoft.com> (raw)
In-Reply-To: <20240318215205.1339-1-cruffin@millcore.com>
From: Chris Ruffin <v-chruffin@microsoft.com>
v2 patchset adds:
- Add digest length parameter to RsaOaepEncrypt(), RsaOaepDecrypt() so that
SHA256, SHA384, SHA512 message digests and mask generation functions can
be used with the API.
- Add NullLib implementation for BaseCryptLibMbedTls
- Cleanups from v1 review
- Significantly refactored and expanded test suite:
- Use UNIT_TEST_CONTEXT and abstaction to run same tests on
Pkcs1v2Encrypt()/Pkcs1v2Decrypt() and RsaOaepEncrypt() RsaOaepDecrypt()
- Align DER Certificate / PrivateKey used with Pkcs1v2 APIs
with RsaN, RsaE, RsaD parameters used by RsaOaep APIs
so that they represent the same keys.
- Implement fixed ciphertext test for Pkcs1v2Decrypt(), RsaOaepDecrypt()
- Implementation was also checked with wycheproof test vectors (not
included in the patch).
Chris Ruffin (3):
CryptoPkg/BaseCryptLib: add additional RSAES-OAEP crypto functions
CryptoPkg/Driver: add additional RSAES-OAEP crypto functions
CryptoPkg/BaseCryptLibUnitTest: add unit test functions
CryptoPkg/Driver/Crypto.c | 130 ++-
CryptoPkg/Include/Library/BaseCryptLib.h | 117 +++
.../Pcd/PcdCryptoServiceFamilyEnable.h | 4 +
.../Library/BaseCryptLib/Pk/CryptPkcs1Oaep.c | 598 ++++++++++++--
.../BaseCryptLib/Pk/CryptPkcs1OaepNull.c | 130 ++-
.../Pk/CryptPkcs1OaepNull.c | 135 +++-
.../BaseCryptLibNull/Pk/CryptPkcs1OaepNull.c | 130 ++-
.../BaseCryptLibOnProtocolPpi/CryptLib.c | 114 +++
CryptoPkg/Private/Protocol/Crypto.h | 109 ++-
.../Library/BaseCryptLib/OaepEncryptTests.c | 758 ++++++++++++++++--
10 files changed, 2098 insertions(+), 127 deletions(-)
--
2.44.0.windows.1
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#117249): https://edk2.groups.io/g/devel/message/117249
Mute This Topic: https://groups.io/mt/105239222/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-
next prev parent reply other threads:[~2024-03-30 22:00 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-18 21:52 [edk2-devel] [PATCH 1/3] CryptoPkg/BaseCryptLib: add additional RSAEP-OAEP crypto functions Chris Ruffin via groups.io
2024-03-18 21:52 ` [edk2-devel] [PATCH 2/3] CryptoPkg/Driver: " Chris Ruffin via groups.io
2024-03-18 21:52 ` [edk2-devel] [PATCH 3/3] CryptoPkg/BaseCryptLibUnitTest: add unit test functions Chris Ruffin via groups.io
2024-03-19 3:52 ` [edk2-devel] [PATCH 1/3] CryptoPkg/BaseCryptLib: add additional RSAEP-OAEP crypto functions Li, Yi
2024-03-19 14:15 ` Chris Ruffin via groups.io
2024-03-26 5:07 ` Li, Yi
2024-03-30 21:59 ` Chris Ruffin via groups.io [this message]
2024-03-30 21:59 ` [edk2-devel] [PATCH v2 1/3] CryptoPkg/BaseCryptLib: add additional RSAES-OAEP " Chris Ruffin via groups.io
2024-03-30 21:59 ` [edk2-devel] [PATCH v2 2/3] CryptoPkg/Driver: " Chris Ruffin via groups.io
2024-03-30 21:59 ` [edk2-devel] [PATCH v2 3/3] CryptoPkg/BaseCryptLibUnitTest: add unit test functions Chris Ruffin via groups.io
2024-04-01 1:46 ` [edk2-devel] [PATCH v2 0/3] CryptoPkg/BaseCryptLib: add additional RSAES-OAEP crypto functions Li, Yi
2024-04-07 7:51 ` Li, Yi
2024-04-07 12:53 ` Chris Ruffin via groups.io
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=cover.1711833672.git.v-chruffin@microsoft.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