Skip to content

Bump go-crypto-winnative to latest - #2471

Open
Quim Muntal (qmuntal) wants to merge 1 commit into
microsoft/mainfrom
dev/qmuntal/update-winnative-main
Open

Bump go-crypto-winnative to latest#2471
Quim Muntal (qmuntal) wants to merge 1 commit into
microsoft/mainfrom
dev/qmuntal/update-winnative-main

Conversation

@qmuntal

Copy link
Copy Markdown
Member

Updates go-crypto-winnative from 6c31d8dd0a62 to 418c3f76f8f8.

Tests:

  • pwsh eng/run.ps1 submodule-refresh -shallow
  • pwsh eng/run.ps1 build
  • go test github.com/microsoft/go-crypto-winnative/cng/...
  • go test github.com/microsoft/go/cryptobackend/...

Copilot AI lite review requested due to automatic review settings August 21, 2026 17:53
@qmuntal
Quim Muntal (qmuntal) requested a review from a team as a code owner August 21, 2026 17:53
@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.

Pull request overview

This PR updates the vendored dependency github.com/microsoft/go-crypto-winnative from 6c31d8dd0a62 to 418c3f76f8f8 by updating the vendor patch, including corresponding go.mod/go.sum and modules.txt updates.

Changes:

  • Bumped github.com/microsoft/go-crypto-winnative pseudo-version and hashes in src/go.mod and src/go.sum (via the vendor patch).
  • Updated vendored CNG KDF-related code (HKDF/PBKDF2/TLS1PRF) to use GC-visible pointers (unsafe.Pointer) and runtime.KeepAlive to ensure parameter lifetimes across syscalls.
  • Updated src/vendor/modules.txt entry for go-crypto-winnative to the new version and go version marker.
Show a summary per file
File Description
patches/0001-Vendor-external-dependencies.patch Updates the vendor patch to the newer go-crypto-winnative revision, including module metadata and vendored Windows CNG interop changes.

Review details

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

  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Lite

Comment on lines 39126 to 39130
+ var size uint32
+ err = bcrypt.KeyDerivation(kh, params, out, &size, 0)
+ runtime.KeepAlive(params)
+ if err != nil {
+ return nil, err
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.

3 participants