Skip to content

Fix parameter in sample calls to BCryptSetProperty#2177

Open
jonproch117 wants to merge 1 commit into
MicrosoftDocs:docsfrom
jonproch117:patch-1
Open

Fix parameter in sample calls to BCryptSetProperty#2177
jonproch117 wants to merge 1 commit into
MicrosoftDocs:docsfrom
jonproch117:patch-1

Conversation

@jonproch117
Copy link
Copy Markdown

&hKeyPair was being passed instead of hKeyPair, resulting in a failure with STATUS_INVALID_HANDLE when attempting to run the sample code

&hKeyPair was being passed instead of hKeyPair, resulting in a failure with STATUS_INVALID_HANDLE when attempting to run the sample code
@prmerger-automator
Copy link
Copy Markdown
Contributor

@jonproch117 : Thanks for your contribution! The author(s) and reviewer(s) have been notified to review your proposed change.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 fixes the ML-DSA CNG documentation samples by passing the correct key handle to BCryptSetProperty, preventing STATUS_INVALID_HANDLE when running the sample code.

Changes:

  • Update the BCryptSetProperty call in the step-by-step snippet to pass hKeyPair (not &hKeyPair).
  • Update the same BCryptSetProperty call in the full MLDSASignSample() listing to pass hKeyPair (not &hKeyPair).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants