Skip to content

Conversation

@SAERXCIT
Copy link

@SAERXCIT SAERXCIT commented Apr 9, 2025

Hi !

The rsaenh.dll files in Windows 11 22H2 to 24H2 (latest at the time of this PR) have gone back to the old pattern from Windows XP for the first patched check in CPExportKey:

Screenshot From 2025-04-09 12-41-55

Currently, crypto::capi fails on these Windows versions. This PR brings compatibility for recent Win 11s, allowing to export private keys stored in the Microsoft RSA SChannel Cryptographic Provider.

Cheers !

@Lucifer1993

This comment was marked as spam.

@SAERXCIT
Copy link
Author

Turns out later revisions of 24H2 have changed how CPExportKey operates quite a lot. No more comparison with 0x4000 for instance. It's not trivial to find the correct place to patch and I do not have time to look into it. So this PR should be compatible with 22H2 et 23H2, but unfortunately for 25H2 and newer 24H2 versions it is not going to work.

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.

2 participants