https://bugs.winehq.org/show_bug.cgi?id=53966
Bug ID: 53966 Summary: NCryptExportKey is not implemented Product: Wine Version: unspecified Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: bcrypt Assignee: wine-bugs@winehq.org Reporter: jesper.lindholm@treetop.se Distribution: ---
Created attachment 73554 --> https://bugs.winehq.org/attachment.cgi?id=73554 Terminal output
Using Ubuntu 22.04 x64, wine-devel as of today (wine-7.21).
The .NET API RSA.ExportSubjectPublicKeyInfo() calls into NCryptExportKey which is not implemented. Using .NET 6.0.
Attaching terminal output. A minimal reproducible example is at https://treetop.se/wine-bug/2022-11-23/source.zip (literally 7 lines of code) , compiled as https://treetop.se/wine-bug/2022-11-23/wine-missing-apis.zip (published as "self-contained", ie bundling the framework which I thought might be helpful here) .
compiled .zip file hashes: SHA256 3C569800092A78D1E8407AEB267DB98F82A4CE09EA1EFEB6BDB947AB6FA9CC85 SHA1 F79D95574B1D4B6BA8582BEB52C3F6745E28F99C
source .zip file hashes: SHA256 2A83E3FB4A7386FB5DD4FA4558E2BDBC9AEDAAD1E272D3216D183563F64A217C SHA1 BDA5F413DDD098185FE1A99A9B1ED3E591B31949
This API is used in many applications generating their own cryptographic RSA keys. We ran across it when testing one of our own applications.
ncrypt looks like it should be its own component due to being its own DLL, but I can't find it or anything that looks like it; filing under bcrypt due to ncrypt implementation calling through to bcrypt in places in the hopes that it will reach the right people.
https://bugs.winehq.org/show_bug.cgi?id=53966
jesper.lindholm@treetop.se changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|unspecified |7.21
https://bugs.winehq.org/show_bug.cgi?id=53966
--- Comment #1 from Hans Leidekker hans@meelstraat.net --- Created attachment 73556 --> https://bugs.winehq.org/attachment.cgi?id=73556 patch
Thanks, this patch should help.
https://bugs.winehq.org/show_bug.cgi?id=53966
--- Comment #2 from jesper.lindholm@treetop.se --- Very fast turnaround, thanks. I'm trying to get Wine built to test this now.
https://bugs.winehq.org/show_bug.cgi?id=53966
jesper.lindholm@treetop.se changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED
--- Comment #3 from jesper.lindholm@treetop.se --- Can confirm that this fixes the issue. Thanks!
https://bugs.winehq.org/show_bug.cgi?id=53966
Hans Leidekker hans@meelstraat.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|FIXED |--- Status|RESOLVED |UNCONFIRMED
--- Comment #4 from Hans Leidekker hans@meelstraat.net --- Thanks for testing. We will close this bug when the patch lands in Wine.
https://bugs.winehq.org/show_bug.cgi?id=53966
Hans Leidekker hans@meelstraat.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Fixed by SHA1| |07f9952a2450c7d203a0b1a5c6e | |501cd870867ed Resolution|--- |FIXED
--- Comment #5 from Hans Leidekker hans@meelstraat.net --- Fixed with 07f9952a2450c7d203a0b1a5c6e501cd870867ed.
https://bugs.winehq.org/show_bug.cgi?id=53966
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #6 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 8.0-rc1.