Skip to content

CryptoPkg: Add AES-CTR APIs to BaseCryptLib#12447

Open
baranee wants to merge 1 commit intotianocore:masterfrom
baranee:add-aes-ctr
Open

CryptoPkg: Add AES-CTR APIs to BaseCryptLib#12447
baranee wants to merge 1 commit intotianocore:masterfrom
baranee:add-aes-ctr

Conversation

@baranee
Copy link
Copy Markdown
Contributor

@baranee baranee commented Apr 13, 2026

Description

Add AesCtrEncrypt() & AesCtrDecrypt() for AES-CTR (128/192/256, IV=16).
Provide OpenSSL/MbedTLS/Null implementations via EDKII_CRYPTO_PROTOCOL (v25).
Add per-service PCD enables and unit tests (NIST SP 800-38A vectors).

  • Breaking change?
    • Breaking change - Does this PR cause a break in build or boot behavior?
    • Examples: Does it add a new library class or move a module to a different repo.
  • Impacts security?
    • Security - Does this PR have a direct security impact?
    • Examples: Crypto algorithm change or buffer overflow fix.
  • Includes tests?
    • Tests - Does this PR include any explicit test code?
    • Examples: Unit tests or integration tests.

How This Was Tested

Verified by calling AES CTR APIs within a SMM module in OVMF for test

Integration Instructions

N/A

@github-actions github-actions bot added the impact:testing This contribution includes tests such as unit and/or integration tests. label Apr 13, 2026
@baranee baranee force-pushed the add-aes-ctr branch 4 times, most recently from 4160876 to 6c9a594 Compare April 13, 2026 20:29
@baranee baranee marked this pull request as ready for review April 14, 2026 01:03
Add AesCtrEncrypt() & AesCtrDecrypt() for AES-CTR (128/192/256, IV=16).
Provide OpenSSL/MbedTLS/Null implementations via EDKII_CRYPTO_PROTOCOL (v25).
Add per-service PCD enables and unit tests (NIST SP 800-38A vectors).

Signed-off-by: Anbazhagan Baraneedharan <anbazhagan@hp.com>
@tianocore-pr-automation
Copy link
Copy Markdown

Pull Request Formatting Issues

⚠️ Remove the following template lines from your PR description:
<_Describe the test(s) that were run to verify the changes._>

Address these issues and the validation will automatically re-run when you update your pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

impact:testing This contribution includes tests such as unit and/or integration tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant