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.