[Bug 10506] New: wine crypt32 needs DSS provider to support more . NET apps which use cryptography API
http://bugs.winehq.org/show_bug.cgi?id=10506 Summary: wine crypt32 needs DSS provider to support more .NET apps which use cryptography API Product: Wine Version: CVS/GIT Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: enhancement Priority: P2 Component: wine-crypt32 AssignedTo: wine-bugs(a)winehq.org ReportedBy: focht(a)gmx.net Hello, while playing around with .NET apps I found various shortcomings when it comes to native backends for certains parts of .NET One is the state of cryptographic providers (crypt32). Many .NET apps use either default RSA or DSS provider. Currently the DSS and enhanced DSS provider are missing, resulting in failure of several .NET apps. Would be nice if wine gets DSS provider too. Trace log showing failure of typical .NET app trying to query DSS provider: --- snip --- trace:crypt:CryptAcquireContextW (0x33d6b8, (null), L"Microsoft Enhanced Cryptographic Provider v1.0", 1, f0000000) trace:crypt:RSAENH_CPAcquireContext (phProv=0x1771b8, pszContainer=(null), dwFlags=f0000000, pVTable=0x1771c8) trace:crypt:CryptReleaseContext (0x1771a8, 00000000) trace:crypt:RSAENH_CPReleaseContext (hProv=00000002, dwFlags=00000000) trace:crypt:CryptAcquireContextW (0x33d72c, (null), L"Microsoft Enhanced Cryptographic Provider v1.0", 1, f0000000) trace:crypt:RSAENH_CPAcquireContext (phProv=0x177450, pszContainer=(null), dwFlags=f0000000, pVTable=0x175f98) trace:crypt:CryptCreateHash (0x177440, 0x8004, 0x0, 00000000, 0x33d83c) trace:crypt:RSAENH_CPCreateHash (hProv=00000002, Algid=00008004, hKey=00000000, dwFlags=00000000, phHash=0x175e04) trace:crypt:CryptAcquireContextW (0x33d6f4, (null), (null), 13, f0000000) trace:crypt:CryptAcquireContextW Did not find registry entry of crypto provider for L"Software\\Microsoft\\Cryptography\\Defaults\\Provider Types\\Type 013". trace:seh:raise_exception code=e0434f4d flags=1 addr=0x7b841300 trace:seh:raise_exception info[0]=80090017 trace:seh:raise_exception eax=7b82c455 ebx=7b8ad1e4 ecx=00000000 edx=0033d348 esi=0033d348 edi=e0434f4d trace:seh:raise_exception ebp=0033d310 esp=0033d2ac cs=0073 ds=007b es=007b fs=0033 gs=003b flags=00000212 --- snip --- resulting in CLR exception: --- snip --- Unhandled Exception: System.InvalidOperationException: An error occurred creating the form. See Exception.InnerException for details. The error is: The type initializer for 'Sunisoft.IrisSkin.SkinEngine' threw an exception. ---> System.TypeInitializationException: The type initializer for 'Sunisoft.IrisSkin.SkinEngine' threw an exception. ---> System.Security.Cryptography.CryptographicException: Unknown error "-2146893801". at System.Security.Cryptography.CryptographicException.ThrowCryptogaphicException(Int32 hr) at System.Security.Cryptography.Utils._AcquireCSP(CspParameters param, SafeProvHandle& hProv) at System.Security.Cryptography.Utils.AcquireProvHandle(CspParameters parameters) at System.Security.Cryptography.Utils.get_StaticDssProvHandle() at System.Security.Cryptography.DSACryptoServiceProvider.ImportParameters(DSAParameters parameters) at System.Security.Cryptography.DSA.FromXmlString(String xmlString) at Sunisoft.IrisSkin.SkinEngine..cctor() --- snip --- Type 001 "RSA Full (Signature and Key Exchange)" and Type 012 "RSA SChannel" are currently implemented in wine Additionally needed: Type 003 "DSS Signature" (base DSS provider) Type 013 "DSS Signature with Diffie-Hellman Key Exchange" (enhanced DSS provider) Type 018 "Diffie-Hellman SChannel" (optional?) Regards -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=10506 Vijay Kamuju <infyquest(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |infyquest(a)gmail.com --- Comment #1 from Vijay Kamuju <infyquest(a)gmail.com> 2007-11-20 13:57:34 --- I am trying to implement AES Provider for rsaenh After that I may start on dssbase and dssenh Well, I have to start on them. But if there are small windows apps that would be great rather than .net apps -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=10506 --- Comment #2 from Austin English <austinenglish(a)gmail.com> 2008-06-16 16:58:12 --- Is this still an issue in current (1.0-rc5 or newer) wine? -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=10506 --- Comment #3 from Vijay Kamuju <infyquest(a)gmail.com> 2008-06-16 17:44:31 --- our current dssenh is merely a stubbed dll, no real implementation of the DSS Provider has been done. So Its still an issue. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=10506 --- Comment #4 from Austin English <austinenglish(a)gmail.com> 2008-12-15 13:58:21 --- Still present in git. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=10506 Anastasius Focht <focht(a)gmx.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|enhancement |normal Keywords| |dotnet Version|CVS/GIT |0.9.49. --- Comment #5 from Anastasius Focht <focht(a)gmx.net> 2009-01-17 06:05:07 --- Hello, corrected version tag and changed severity because this blocks certain .NET apps from functioning properly. Regards -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=10506 --- Comment #6 from Austin English <austinenglish(a)gmail.com> 2009-07-21 12:30:30 --- Still present. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=10506 Dan Kegel <dank(a)kegel.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dank(a)kegel.com --- Comment #7 from Dan Kegel <dank(a)kegel.com> 2009-11-02 16:59:34 --- Can you list a couple of the affected apps? -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=10506 Austin English <austinenglish(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |austinenglish(a)gmail.com -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=10506 Austin English <austinenglish(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |26022 -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=10506 seanleblanc(a)gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |seanleblanc(a)gmail.com --- Comment #8 from seanleblanc(a)gmail.com 2011-04-08 11:32:34 CDT --- One of the apps affected is MadCap Flare (help authoring tool). Trying to register the program results in a CryptographicException being thrown. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=10506 Anastasius Focht <focht(a)gmx.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download Status|UNCONFIRMED |NEW URL| |http://www.madcapsoftware.c | |om/downloads/?p=PFL Ever Confirmed|0 |1 --- Comment #9 from Anastasius Focht <focht(a)gmx.net> 2011-10-11 14:19:04 CDT --- Hello, filling some fields... Regards -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=10506 Michael Mathers <michael.mathers(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |michael.mathers(a)gmail.com --- Comment #10 from Michael Mathers <michael.mathers(a)gmail.com> 2012-06-05 15:54:11 CDT --- This also happens when installing Toad for MySQL Community. I suspect the app would run great if this one thing were fixed. It bombs on install when creating the "Plugin cache" at the tail end of the install. Also if you run the application toad.exe on startup. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=10506 --- Comment #11 from Michael Mathers <michael.mathers(a)gmail.com> 2012-06-05 15:56:26 CDT --- forgot to add Wine 1.4/Crossover 11.0.2 -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=10506 Juan Lang <juan.lang(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |raven566(a)hotmail.com --- Comment #12 from Juan Lang <juan.lang(a)gmail.com> 2012-07-22 17:19:09 CDT --- *** Bug 30863 has been marked as a duplicate of this bug. *** -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=10506 --- Comment #13 from Matt <raven566(a)hotmail.com> 2012-08-15 06:51:38 CDT --- This also happens in Editplus when trying to use SFTP. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=10506 Austin English <austinenglish(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |32831 --- Comment #14 from Austin English <austinenglish(a)gmail.com> 2013-02-20 23:16:12 CST --- Also needed by TurboTax 2012. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=10506 swdevelop1981(a)gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |swdevelop1981(a)gmail.com -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=10506 --- Comment #15 from Anastasius Focht <focht(a)gmx.net> --- Hello folks, revisiting, obviously still present. This was a topic for GSoC 2012. Probably not picked up. $ wine --version wine-1.7.18 Regards -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=10506 Anastasius Focht <focht(a)gmx.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks|26022 | --- Comment #16 from Anastasius Focht <focht(a)gmx.net> --- *** Bug 26022 has been marked as a duplicate of this bug. *** -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=10506 Anastasius Focht <focht(a)gmx.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|wine crypt32 needs DSS |.NET applications which use |provider to support more |'System.Security.Cryptograp |.NET apps which use |hy.DSA' need crypt32 DSS |cryptography API |provider --- Comment #17 from Anastasius Focht <focht(a)gmx.net> --- Hello folks, revisiting, still present. We've reached 10 years here _oO_ ... maybe GSoC? Found another .NET app/game to reproduce with: http://www.fileplanet.com/218230/210000/fileinfo/Miner-Wars-Demo http://download.fileplanet.com/ftp1/012011/MinerWars_01_074_006_Setup.exe Prerequisite: 'wintricks -q dotnet40 xna40' Fails during auto-update after starting the game from launcher. --- snip --- $ pwd /home/focht/.wine/drive_c/Program Files/Keen Software House/Miner Wars $ wine ./MinerWarsLauncher.exe ... --- snip --- App log file './users/focht/Application Data/MinerWars/MinerWarsLauncher.exe_UPDATER.log': --- snip --- ... 2018-02-25 14:13:41.184 - Thread: 5 -> KeenClientDLL.CLR.dll test load succes (0) 2018-02-25 14:13:41.184 - Thread: 5 -> P2P enabled on server, will try using P2P download first. 2018-02-25 14:13:41.191 - Thread: 5 -> Authorizing exe in fw: C:\Program Files\Keen Software House\Miner Wars\MinerWarsLauncher_01_110_013.exe 2018-02-25 14:13:41.197 - Thread: 5 -> Update from P2P enabled on server 2018-02-25 14:13:41.198 - Thread: 5 -> Update from P2P, downloading .torrent file: MinerWars.torrent 2018-02-25 14:13:41.198 - Thread: 5 -> Url: http://update2.minerwars.com/01_110_013/MinerWars.torrent 2018-02-25 14:13:41.445 - Thread: 5 -> P2P caught exception: File already exists. 2018-02-25 14:13:41.450 - Thread: 5 -> P2P exception detail System.IO.IOException: File already exists. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.__Error.WinIOError() at System.IO.FileInfo.MoveTo(String destFileName) at MinerWars.Launcher.P2PDownload.UpdateFromP2P(Stack`1& updateFiles, String serverVersion) at MinerWars.Launcher.P2PDownload.TryP2PDownload(Stack`1& updateFiles, String serverVersion) 2018-02-25 14:13:41.450 - Thread: 5 -> P2P download terminating... 2018-02-25 14:13:41.701 - Thread: 5 -> P2P client terminating libtorrent library 2018-02-25 14:13:41.701 - Thread: 5 -> P2P client waiting for worker thread to terminate... 2018-02-25 14:13:41.701 - Thread: 5 -> P2P client finished. 2018-02-25 14:13:41.702 - Thread: 5 -> P2P download finished with reason: P2P internal exception caught, see log for detail 2018-02-25 14:13:41.702 - Thread: 5 -> Launcher will download via HTTP, bytes to download: 1120397147 2018-02-25 14:13:41.710 - Thread: 1 -> Exception occured: System.Security.Cryptography.CryptographicException: Unknown error "-2146893801". at System.Security.Cryptography.Utils.CreateProvHandle(CspParameters parameters, Boolean randomKeyContainer) at System.Security.Cryptography.Utils.get_StaticDssProvHandle() at System.Security.Cryptography.DSACryptoServiceProvider.ImportParameters(DSAParameters parameters) at System.Security.Cryptography.DSA.FromXmlString(String xmlString) at MinerWars.Launcher.MyMainForm.RunBackgroundUpdater() at MinerWars.Launcher.MyMainForm.RunBackground(BackgroundWorker bw, Int32 a) at MinerWars.Launcher.MyMainForm.BackgroundThread_DoWork(Object sender, DoWorkEventArgs e) at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e) at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument) --- snip --- $ wine --version wine-3.2-168-gc073701d02 Regards -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=10506 Paul Gofman <gofmanp(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gofmanp(a)gmail.com -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=10506 Anastasius Focht <focht(a)gmx.net> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.winehq.org/sho | |w_bug.cgi?id=32783 -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=10506 --- Comment #18 from Anastasius Focht <focht(a)gmx.net> --- Hello folks, revisiting due to bug 32783 , obviously still present. I've created a snapshot for game download mentioned in comment #17 via Internet Archive: https://web.archive.org/web/20190422203412/http://download.fileplanet.com/ft... --- snip --- 2019-04-22 23:15:11.572 - Thread: 5 -> Launcher will download via HTTP, bytes to download: 1120397147 2019-04-22 23:15:11.575 - Thread: 1 -> Exception occured: System.Security.Cryptography.CryptographicException: Unknown error "-2146893801". at System.Security.Cryptography.Utils.CreateProvHandle(CspParameters parameters, Boolean randomKeyContainer) at System.Security.Cryptography.Utils.get_StaticDssProvHandle() at System.Security.Cryptography.DSACryptoServiceProvider.ImportParameters(DSAParameters parameters) at System.Security.Cryptography.DSA.FromXmlString(String xmlString) at MinerWars.Launcher.MyMainForm.RunBackgroundUpdater() at MinerWars.Launcher.MyMainForm.RunBackground(BackgroundWorker bw, Int32 a) at MinerWars.Launcher.MyMainForm.BackgroundThread_DoWork(Object sender, DoWorkEventArgs e) at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e) at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument) --- snip --- $ sha1sum MinerWars_01_074_006_Setup.exe 1150ae20479cb0170fa4c8a14e5b0d4889e50efd MinerWars_01_074_006_Setup.exe $ du -sh MinerWars_01_074_006_Setup.exe 570M MinerWars_01_074_006_Setup.exe $ wine --version wine-4.6-108-g9d7d68747b Regards -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=10506 Michael McGuire <spoon0042(a)hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |spoon0042(a)hotmail.com --- Comment #19 from Michael McGuire <spoon0042(a)hotmail.com> --- Per Paul Gofman this is the cause of Might and Magic Clash of Heroes not working: https://bugs.winehq.org/show_bug.cgi?id=30244#c24 ...which is not a .net app apparently. He attached a hack/patch that renders that game playable. Don't know why he didn't mention this himself and I meant to but kind of forgot once I finished the game. :) -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=10506 Josh <winehq(a)iooioio.hadar.uberspace.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |winehq(a)iooioio.hadar.ubersp | |ace.de -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=10506 Anastasius Focht <focht(a)gmx.net> changed: What |Removed |Added ---------------------------------------------------------------------------- URL|http://www.madcapsoftware.c |https://web.archive.org/web |om/downloads/?p=PFL |/20190422203412if_/http://d | |ownload.fileplanet.com/ftp1 | |/012011/MinerWars_01_074_00 | |6_Setup.exe?st=v8cJppGAmBxt | |Yts2JjCi7g&e=1555976031 --- Comment #20 from Anastasius Focht <focht(a)gmx.net> --- Hello folks, revisiting, still present. Putting Miner Wars client download link from Internet Archive into URL field. 'MinerWarsLauncher_01_110_013.exe_UPDATER_2021-03-20_20-26.log' --- snip --- ... 2021-03-20 20:27:22.299 - Thread: 5 -> Launcher will download via HTTP, bytes to download: 1120397147 2021-03-20 20:27:22.304 - Thread: 1 -> Exception occured: System.Security.Cryptography.CryptographicException: Insufficient buffer. at System.Security.Cryptography.Utils.CreateProvHandle(CspParameters parameters, Boolean randomKeyContainer) at System.Security.Cryptography.Utils.get_StaticDssProvHandle() at System.Security.Cryptography.DSACryptoServiceProvider.ImportParameters(DSAParameters parameters) at System.Security.Cryptography.DSA.FromXmlString(String xmlString) at MinerWars.Launcher.MyMainForm.RunBackgroundUpdater() at MinerWars.Launcher.MyMainForm.RunBackground(BackgroundWorker bw, Int32 a) at MinerWars.Launcher.MyMainForm.BackgroundThread_DoWork(Object sender, DoWorkEventArgs e) at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e) at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument) 2021-03-20 20:27:25.924 - Thread: 1 -> Received close event! 2021-03-20 20:27:25.924 - Thread: 1 -> Close event confirmed by user, signalling terminate to P2P download... 2021-03-20 20:27:25.924 - Thread: 1 -> P2P client received request to terminate! 2021-03-20 20:27:26.182 - Thread: 1 -> Main Form terminated, quitting... 2021-03-20 20:27:26.182 - Thread: 1 -> WaitForTerminate... 2021-03-20 20:27:26.182 - Thread: 1 -> WaitForTerminate... DONE 2021-03-20 20:27:26.182 - Thread: 1 -> Log Closed --- snip --- $ wine --version wine-6.4-180-g41df83c50e1 Regards -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=10506 --- Comment #21 from Hans Leidekker <hans(a)meelstraat.net> --- We do have a DSS provider now. The issue is that there's no default key container which makes CryptAcquireContext fail. I'm not sure where or when it should be created (I recall we had a similar issue with RSA) but running the dssenh tests also creates it and allows the launcher to proceed. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=10506 --- Comment #22 from Michael McGuire <spoon0042(a)hotmail.com> --- Bug 30244 has been closed FIXED, someone may want to check if that applies here or if there's more work needed. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=10506 Anastasius Focht <focht(a)gmx.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|.NET applications which use |.NET applications which use |'System.Security.Cryptograp |'System.Security.Cryptograp |hy.DSA' need crypt32 DSS |hy.DSA' fail to set up |provider |crypt32 DSS provider due to | |missing default key | |container --- Comment #23 from Anastasius Focht <focht(a)gmx.net> --- Hello folks, revisiting, still present. Refining the summary to make it less "meta", targeting the problem Hans mentioned in comment #21 --- snip --- $ pwd /home/focht/.wine/drive_c/Program Files (x86)/Keen Software House/Miner Wars $ WINEDEBUG=+seh,+relay,+crypt,+dssenh wine ./MinerWarsLauncher_01_110_013.exe -updater >>log.txt 2>&1 <switch to http via UI button> ... 0124:Call advapi32.CryptAcquireContextW(05bbee00,00000000,065e1048 L"Microsoft Enhanced DSS and Diffie-Hellman Cryptographic Provider",0000000d,00000000) ret=791cef64 0124:trace:crypt:CryptAcquireContextW (05BBEE00, (null), L"Microsoft Enhanced DSS and Diffie-Hellman Cryptographic Provider", 13, 00000000) ... 0124:Ret PE DLL (proc=0EFA4540,module=0EFA0000 L"dssenh.dll",reason=PROCESS_ATTACH,res=00000000) retval=1 ... 0124:Call dssenh.CPAcquireContext(066be9f0,00000000,00000000,06686018) ret=1000bf47 ... 0124:Call advapi32.RegOpenKeyExA(80000001,05bbe8a8 "Software\\Wine\\Crypto\\DSS\\focht",00000000,00020019,05bbe9d0) ret=0efa183a ... 0124:Ret advapi32.RegOpenKeyExA() retval=00000002 ret=0efa183a 0124:Ret dssenh.CPAcquireContext() retval=00000000 ret=1000bf47 ... 0124:Ret advapi32.CryptAcquireContextW() retval=00000000 ret=791cef64 ... 0124:Call KERNEL32.GetLastError() ret=7919bf4a 0124:Ret KERNEL32.GetLastError() retval=80090016 ret=7919bf4a 0124:Call advapi32.CryptAcquireContextW(05bbee00,00000000,066c7138 L"Microsoft Enhanced DSS and Diffie-Hellman Cryptographic Provider",0000000d,f0000008) ret=791cef64 0124:trace:crypt:CryptAcquireContextW (05BBEE00, (null), L"Microsoft Enhanced DSS and Diffie-Hellman Cryptographic Provider", 13, f0000008) ... 0124:Ret PE DLL (proc=0EFA4540,module=0EFA0000 L"dssenh.dll",reason=PROCESS_ATTACH,res=00000000) retval=1 ... 0124:Call dssenh.CPAcquireContext(066be9f0,00000000,f0000008,06686018) ret=1000bf47 ... 0124:fixme:dssenh:CPAcquireContext unsupported flags f0000008 0124:Ret dssenh.CPAcquireContext() retval=00000000 ret=1000bf47 ... 0124:Ret advapi32.CryptAcquireContextW() retval=00000000 ret=791cef64 ... 0124:Call KERNEL32.GetLastError() ret=7919bf4a 0124:Ret KERNEL32.GetLastError() retval=0000007a ret=7919bf4a ... 0124:trace:seh:dispatch_exception code=e0434352 flags=1 addr=7B0102F8 ip=7b0102f8 tid=0124 0124:trace:seh:dispatch_exception info[0]=8007007a 0124:trace:seh:dispatch_exception info[1]=00000000 0124:trace:seh:dispatch_exception info[2]=00000000 0124:trace:seh:dispatch_exception info[3]=00000000 0124:trace:seh:dispatch_exception info[4]=79140000 0124:warn:seh:dispatch_exception unknown exception (code=e0434352) raised 0124:trace:seh:dispatch_exception eax=05bbe964 ebx=00000005 ecx=05bbea54 edx=05bbea58 esi=00000005 edi=05bbe9d0 0124:trace:seh:dispatch_exception ebp=05bbe9b8 esp=05bbe964 cs=7bc50023 ds=5bb002b es=7bc3002b fs=5bb0063 gs=006b flags=00000212 0124:trace:seh:call_vectored_handlers calling handler at 791F5A7C code=e0434352 flags=1 ... --- snip --- Launcher log: --- snip --- ... 2021-07-05 09:44:41.844 - Thread: 5 -> Launcher will download via HTTP, bytes to download: 1120397147 2021-07-05 09:44:41.860 - Thread: 1 -> Exception occured: System.Security.Cryptography.CryptographicException: Insufficient buffer. at System.Security.Cryptography.CryptographicException.ThrowCryptographicException(Int32 hr) at System.Security.Cryptography.Utils._CreateCSP(CspParameters param, Boolean randomKeyContainer, SafeProvHandle& hProv) at System.Security.Cryptography.Utils.CreateProvHandle(CspParameters parameters, Boolean randomKeyContainer) at System.Security.Cryptography.Utils.get_StaticDssProvHandle() at System.Security.Cryptography.DSACryptoServiceProvider.ImportParameters(DSAParameters parameters) at System.Security.Cryptography.DSA.FromXmlString(String xmlString) at MinerWars.Launcher.MyMainForm.RunBackgroundUpdater() at MinerWars.Launcher.MyMainForm.RunBackground(BackgroundWorker bw, Int32 a) at MinerWars.Launcher.MyMainForm.BackgroundThread_DoWork(Object sender, DoWorkEventArgs e) at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e) at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument) --- snip --- https://github.com/microsoft/referencesource/blob/5697c29004a34d80acdaf5742d... https://source.winehq.org/git/wine.git/blob/12d33d21d33788fd46898ea42e9592d3... $ wine --version wine-6.12 Regards -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=10506 Neko-san <nekoNexus(a)protonmail.ch> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nekoNexus(a)protonmail.ch -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (2)
-
wine-bugs@winehq.org -
WineHQ Bugzilla