Skip to content

CryptoPkg: Pkcs7Encrypt Unit Tests#1681

Draft
Flickdm wants to merge 1 commit intomicrosoft:release/202511from
Flickdm:feature/crypto/Pkcs7Encrypt/Unittests
Draft

CryptoPkg: Pkcs7Encrypt Unit Tests#1681
Flickdm wants to merge 1 commit intomicrosoft:release/202511from
Flickdm:feature/crypto/Pkcs7Encrypt/Unittests

Conversation

@Flickdm
Copy link
Copy Markdown
Member

@Flickdm Flickdm commented Mar 6, 2026

Description

<Include a description of the change and why this change was made.>

For details on how to complete these options and their meaning refer to CONTRIBUTING.md.

  • Impacts functionality?
  • Impacts security?
  • Breaking change?
  • Includes tests?
  • Includes documentation?

How This Was Tested

<Describe the test(s) that were run to verify the changes.>

Integration Instructions

<Describe how these changes should be integrated. Use N/A if nothing is required.>

Add unit tests for the Pkcs7Encrypt function in BaseCryptLib.
Tests cover AES-128/192/256 cipher modes, NULL parameter
validation, invalid cipher NID, invalid flags, output OID
verification, and InDataSize overflow handling. Includes a
self-signed RSA-2048 X509 test certificate for encryption.

Signed-off-by: Doug Flick <dougflick@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant