Skip to content

Update CNG algorithm pseudo-handles article#2124

Merged
alvinashcraft merged 5 commits into
MicrosoftDocs:docsfrom
denkisikinoneko:patch-1
Oct 20, 2025
Merged

Update CNG algorithm pseudo-handles article#2124
alvinashcraft merged 5 commits into
MicrosoftDocs:docsfrom
denkisikinoneko:patch-1

Conversation

@denkisikinoneko
Copy link
Copy Markdown
Contributor

Cleaned up redundant information and made the contents more consistent, and attached handle locations for ease of use in non-C++/C applications, from bcrypt.h (version 10.0.26100.0). Added links to IETF / NIST for each specification referenced (authoritative links for ANSI / PKCS could not be found). Some specifications linked may not match up with exactly what is implemented with Windows versions they were shipped with, and the most recent specified was used in place.

Cleaned up redundant information and made the contents more consistent, and attached handle locations for ease of use in non-C++/C applications, from bcrypt.h (version 10.0.26100.0). Added links to IETF / NIST for each specification referenced (authoritative links for ANSI / PKCS could not be found). Some specifications linked may not match up with exactly what is implemented with Windows versions they were shipped with, and the most recent specified was used in place.
@denkisikinoneko
Copy link
Copy Markdown
Contributor Author

@microsoft-github-policy-service agree

@prmerger-automator
Copy link
Copy Markdown
Contributor

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

@alvinashcraft
Copy link
Copy Markdown
Contributor

Thanks for the PR. Since this PR updates so much of the content, I'm going to loop in someone from the product team to make sure everything looks OK to merge.

@denkisikinoneko
Copy link
Copy Markdown
Contributor Author

denkisikinoneko commented Oct 7, 2025

I'm unsure about what to do about the supposed handle "BCRYPT_RNG_FIPS186_DSA_ALG_HANDLE," as I can't find it the latest SDK. Do you know if it is a preview like the digital signature algorithms (in which, a preview notice would probably be beneficial), or does it not exist at all?

@alvinashcraft
Copy link
Copy Markdown
Contributor

I'm unsure about what to do about the supposed handle "BCRYPT_RNG_FIPS186_DSA_ALG_HANDLE," as I can't find it the latest SDK. Do you know if it is a preview like the digital signature algorithms (in which, a preview notice would probably be beneficial), or does it not exist at all?

I'm checking with the team about this handle. Thanks!

Comment thread desktop-src/SecCNG/cng-algorithm-pseudo-handles.md Outdated
| **BCRYPT_HMAC_MD2_ALG_HANDLE**<br/>0x00000121 | A handle for the hash-based message authentication code using the MD2 hash algorithm. | [RFC 1319](https://www.ietf.org/rfc/rfc1319.txt), [RFC 2104](https://www.ietf.org/rfc/rfc2104.txt) |
| **BCRYPT_HMAC_MD4_ALG_HANDLE**<br/>0x00000131 | A handle for the hash-based message authentication code using the MD4 hash algorithm. | [RFC 1320](https://www.ietf.org/rfc/rfc1320.txt), [RFC 2104](https://www.ietf.org/rfc/rfc2104.txt) |
| **BCRYPT_HMAC_MD5_ALG_HANDLE**<br/>0x00000091 | A handle for the hash-based message authentication code using the MD4 hash algorithm. | [RFC 1321](https://www.ietf.org/rfc/rfc1321.txt), [RFC 2104](https://www.ietf.org/rfc/rfc2104.txt) |
| Available in **Windows 11, version 23H2** |
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.

3

Is this true?
I think it might just be from Win11 24H2

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The handles below are put under a guard in the header for NTDDI_VERSION >= NTDDI_WIN11_ZN, which, from what I could find on the Internet, is "Windows 10.0.25246-25398 / 23H2 / Zinc"
The same sources of information state 24H2 as "NTDDI_WIN11_GE" (with the latest handles in the header file being "NTDDI_WIN11_GA", 24H1)

Comment thread desktop-src/SecCNG/cng-algorithm-pseudo-handles.md Outdated
Comment thread desktop-src/SecCNG/cng-algorithm-pseudo-handles.md Outdated
@samuel-lee-msft
Copy link
Copy Markdown
Contributor

Left a few comments. Happy with the changes at a high level.

General comment that links are great, but also can become dead over time. Up to doc folks on best approach.
I don't think it's a huge burden on folks who are interested to find the underlying standards docs without the explicit links.

Copy link
Copy Markdown
Contributor

@alvinashcraft alvinashcraft left a comment

Choose a reason for hiding this comment

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

This all looks much better to me. Let me know if you have any remaining concerns, @samuel-lee-msft. Otherwise, we can move ahead with the PR. Thanks folks!

@alvinashcraft
Copy link
Copy Markdown
Contributor

I'm merging this today, but I'm happy to circle back and make additional updates if anything needs to be tweaked later. Thanks for your contribution @denkisikinoneko

@alvinashcraft alvinashcraft merged commit 3dc079f into MicrosoftDocs:docs Oct 20, 2025
1 check passed
@jess-krynitsky
Copy link
Copy Markdown
Contributor

jess-krynitsky commented Oct 21, 2025 via email

@denkisikinoneko denkisikinoneko deleted the patch-1 branch October 22, 2025 16:43
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.

4 participants