<feed xmlns='http://www.w3.org/2005/Atom'>
<title>Tianocore/edk2.git/CryptoPkg/Test/UnitTest/Library/BaseCryptLib, branch master</title>
<subtitle>EDK II (mirror)</subtitle>
<id>https://git.radix-linux.su/Tianocore/edk2.git/atom?h=master</id>
<link rel='self' href='https://git.radix-linux.su/Tianocore/edk2.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/'/>
<updated>2026-10-20T06:15:11+00:00</updated>
<entry>
<title>CryptoPkg: Add X509 certificate stack unit tests</title>
<updated>2026-10-20T06:15:11+00:00</updated>
<author>
<name>Doug Flick</name>
<email>dougflick@microsoft.com</email>
</author>
<published>2026-10-03T01:41:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=8ac2c6c8170e369c377f61fb14ae891772403fcf'/>
<id>urn:sha1:8ac2c6c8170e369c377f61fb14ae891772403fcf</id>
<content type='text'>
Add eight tests covering null input, single and multiple certificates,
incremental append, invalid and zero-sized input, an empty list, and the
variadic path.

Also correct the existing X509 test class.

Signed-off-by: Doug Flick &lt;dougflick@microsoft.com&gt;
</content>
</entry>
<entry>
<title>CryptoPkg: Add HKDF SHA512 test coverage</title>
<updated>2026-10-14T06:40:50+00:00</updated>
<author>
<name>Sami Mujawar</name>
<email>sami.mujawar@arm.com</email>
</author>
<published>2026-07-04T22:30:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=5a52bd17a7ee09cac5f21fc4b0ef1ac65747e484'/>
<id>urn:sha1:5a52bd17a7ee09cac5f21fc4b0ef1ac65747e484</id>
<content type='text'>
Add BaseCryptLib HKDF-SHA512 unit test coverage for extract, expand,
and extract-and-expand operations.

Add MockBaseCryptLib declarations and definitions for the new HKDF-SHA512
APIs so GoogleTest consumers can mock them.

The Hkdf-Sha512 test vector uses the input parameters from RFC 5869
Appendix A.1 'Test Case 1' with SHA512 as the hash function.
Ref: https://www.rfc-editor.org/rfc/rfc5869.html#appendix-A.1

Signed-off-by: Sami Mujawar &lt;sami.mujawar@arm.com&gt;
</content>
</entry>
<entry>
<title>CryptoPkg: Add EcGetCurveNid test coverage</title>
<updated>2026-10-14T06:40:50+00:00</updated>
<author>
<name>Sami Mujawar</name>
<email>sami.mujawar@arm.com</email>
</author>
<published>2026-07-04T18:17:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=bb04cf74304275c49edc4964660b67f693834912'/>
<id>urn:sha1:bb04cf74304275c49edc4964660b67f693834912</id>
<content type='text'>
Add BaseCryptLib unit coverage for EcGetCurveNid(), including fresh
EcNewByNid() contexts before key generation and generated-key contexts.

Add the corresponding GoogleTest MockBaseCryptLib declaration and
definition so consumers can mock the new API.

Signed-off-by: Sami Mujawar &lt;sami.mujawar@arm.com&gt;
</content>
</entry>
<entry>
<title>CryptoPkg: Add EC public key PEM test coverage</title>
<updated>2026-10-14T06:40:50+00:00</updated>
<author>
<name>Sami Mujawar</name>
<email>sami.mujawar@arm.com</email>
</author>
<published>2026-07-04T18:29:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=a54d660ee7a3501273b33ddfb3bc68cf271afe2a'/>
<id>urn:sha1:a54d660ee7a3501273b33ddfb3bc68cf271afe2a</id>
<content type='text'>
Add BaseCryptLib unit coverage for EC public key PEM functions:
 - EcGetPublicKeyFromPem
 - EcPublicKeyToPEM

Test size discovery, undersized output buffers, invalid parameters,
and round-trip public key comparison.

Add MockBaseCryptLib support for the new EC public key PEM APIs.

Signed-off-by: Sami Mujawar &lt;sami.mujawar@arm.com&gt;
</content>
</entry>
<entry>
<title>CryptoPkg: Remove SLH-DSA signing API</title>
<updated>2026-10-08T02:33:36+00:00</updated>
<author>
<name>Michael D Kinney</name>
<email>michael.d.kinney@intel.com</email>
</author>
<published>2026-09-13T17:59:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=78fdd2db8932d619eced4c69ef06a13c4f6469b2'/>
<id>urn:sha1:78fdd2db8932d619eced4c69ef06a13c4f6469b2</id>
<content type='text'>
Remove SlhDsaSign from BaseCryptLib, backend instances, and signing tests.
Keep the protocol callback signature and slot for compatibility, mark it
deprecated, and return FALSE. Verification tests continue to use
precomputed signatures.

Signed-off-by: Michael D Kinney &lt;michael.d.kinney@intel.com&gt;
</content>
</entry>
<entry>
<title>CryptoPkg: Add Pkcs7Decrypt API</title>
<updated>2026-08-28T12:37:18+00:00</updated>
<author>
<name>Doug Cook</name>
<email>dcook@microsoft.com</email>
</author>
<published>2026-07-27T23:15:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=5337420d7c59b446a4ec9f1348bc75e47de8299d'/>
<id>urn:sha1:5337420d7c59b446a4ec9f1348bc75e47de8299d</id>
<content type='text'>
Add support for a Pkcs7Decrypt API, mirroring the Pkcs7Encrypt API.

I expect that the primary use of Pkcs7Decrypt would be for testing the
Pkcs7Encrypt API, but maybe somebody will need it for real work someday.

Signed-off-by: Doug Cook &lt;dcook@microsoft.com&gt;
Committed-by: Doug Flick &lt;dougflick@microsoft.com&gt;
</content>
</entry>
<entry>
<title>CryptoPkg: Add Pkcs7Encrypt smoke tests</title>
<updated>2026-08-28T12:37:18+00:00</updated>
<author>
<name>Doug Flick</name>
<email>dougflick@microsoft.com</email>
</author>
<published>2026-06-03T22:08:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=07a37d45eef9972b7fc3deb761d5c24527a17387'/>
<id>urn:sha1:07a37d45eef9972b7fc3deb761d5c24527a17387</id>
<content type='text'>
These don't actually decrypt anything, so calling them "unit tests"
was a stretch. They're smoke tests: build an envelopedData ContentInfo
for a recipient cert, then walk the DER and check the shape looks
right (id-envelopedData, CMSVersion, the right number of
RecipientInfo entries, the expected content-encryption OID).

Covered:

  * AES-128/192/256-CBC happy paths.
  * Two recipients, just to confirm the SET grows.
  * The parameter-validation contract from BaseCryptLib.h
    (NULL stack/InData/output pointers, bogus CipherNid, bogus Flags).

The DER walker is hand-rolled in the test file so we don't have to
pull OpenSSL or mbedtls headers into a unit test that has to compile
against both. It catches obvious shape regressions but won't notice
if the CEK, IV, or PKCS#7 padding are wrong - a real round-trip needs
a Pkcs7Decrypt API we don't have yet.

Signed-off-by: Doug Flick &lt;dougflick@microsoft.com&gt;
</content>
</entry>
<entry>
<title>CryptoPkg/BaseCryptLib: Add SLH-DSA Support</title>
<updated>2026-07-21T09:17:50+00:00</updated>
<author>
<name>Michael G.A. Holland</name>
<email>michael.holland@intel.com</email>
</author>
<published>2026-07-14T14:34:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=2b842a2081613684117fb1f924eb27a05a112e5d'/>
<id>urn:sha1:2b842a2081613684117fb1f924eb27a05a112e5d</id>
<content type='text'>
Created SLH-DSA API functions to configure public and private keys for
SLH-DSA algorithm.  This will allow users to sign and verify with
SLH-DSA.  Unit tests were added to confirm operation of the API.

Signed-off-by: Michael G.A. Holland &lt;michael.holland@intel.com&gt;
</content>
</entry>
<entry>
<title>CryptoPkg/BaseCryptLib: EdDsa updates</title>
<updated>2026-07-20T03:23:22+00:00</updated>
<author>
<name>Michael G.A. Holland</name>
<email>michael.holland@intel.com</email>
</author>
<published>2026-07-17T17:39:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=5309cdb92c5552e64fce7648ec15d0ab497b1161'/>
<id>urn:sha1:5309cdb92c5552e64fce7648ec15d0ab497b1161</id>
<content type='text'>
Include validation checks for Context and ContextSize in
sign and verify functions.
Returned FALSE for EdDsaGeneratePubKey.
Updated ReadMe to show EdDsa support

Signed-off-by: Michael G.A. Holland &lt;michael.holland@intel.com&gt;
</content>
</entry>
<entry>
<title>CryptoPkg/BaseCryptLib: Add ML-DSA Support</title>
<updated>2026-07-14T03:26:52+00:00</updated>
<author>
<name>Michael G.A. Holland</name>
<email>michael.holland@intel.com</email>
</author>
<published>2026-07-01T22:20:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=0f07c187d016bd63098a5bf3e2b12c51ca9d4bb3'/>
<id>urn:sha1:0f07c187d016bd63098a5bf3e2b12c51ca9d4bb3</id>
<content type='text'>
Created ML-DSA API functions to configure public and private keys for
ML-DSA algorithm.  This will allow users to sign and verify with ML-DSA.
Unit tests were add to confirm operation of the API.

Signed-off-by: Michael G.A. Holland &lt;michael.holland@intel.com&gt;
</content>
</entry>
</feed>
