Skip to content

Support ML-KEM with OpenSSL 3.3 - #2492

Merged
George Adams (gdams) merged 1 commit into
microsoft/mainfrom
dev/qmuntal/mlkem3.3
Sep 4, 2026
Merged

Support ML-KEM with OpenSSL 3.3#2492
George Adams (gdams) merged 1 commit into
microsoft/mainfrom
dev/qmuntal/mlkem3.3

Conversation

@qmuntal

Copy link
Copy Markdown
Member

Upgrade the OpenSSL backend to bring microsoft/go-crypto-openssl#68.

@qmuntal
Quim Muntal (qmuntal) requested a review from a team as a code owner September 4, 2026 07:04
Copilot AI lite review requested due to automatic review settings September 4, 2026 07:04
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🔵 Needs a closer look

It updates a large, security-sensitive vendored crypto backend (including regenerated OpenSSL shims), which warrants careful human validation/testing across supported OpenSSL versions.

Review tier: Lite
Findings: None

What changed in this PR

Updates the vendored github.com/microsoft/go-crypto-openssl backend to a newer revision to support ML-KEM when running against OpenSSL 3.3, and adjusts the vendor patch to match the updated upstream backend codegen/API usage.

Changes:

  • Bumps github.com/microsoft/go-crypto-openssl to v0.5.1-0.20260904065618-5fd04832939d and updates go.sum/modules.txt accordingly.
  • Switches OpenSSL 3 key construction paths from numeric EVP/NID identifiers to algorithm name strings (via EVP_PKEY_CTX_new_from_name) for ML-KEM/ML-DSA and related EVP-from-params helpers.
  • Regenerates vendored OpenSSL shim bindings (shims.h / zossl*) to include EVP_PKEY_CTX_new_from_name and remove hardcoded ML-KEM/ML-DSA numeric constants.

Patches are happy!

File Description
patches/​0001-Vendor-external-dependencies.patch Updates the vendor patch to the newer go-crypto-openssl revision and corresponding generated OpenSSL shim/binding changes needed for OpenSSL 3.3 ML-KEM support.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@gdams
George Adams (gdams) enabled auto-merge (squash) September 4, 2026 07:32
George Adams (gdams) added a commit that referenced this pull request Sep 4, 2026
Backport of #2492 to microsoft/release-branch.go1.27.

Co-authored-by: qmuntal <quimmuntal@gmail.com>
@gdams
George Adams (gdams) merged commit f0080ec into microsoft/main Sep 4, 2026
59 checks passed
@gdams
George Adams (gdams) deleted the dev/qmuntal/mlkem3.3 branch September 4, 2026 09:33
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.

4 participants