https://bugs.winehq.org/show_bug.cgi?id=40406
Bug ID: 40406 Summary: bcrypt : BCryptOpenAlgorithmProvider : Need RNG and AES for Doom4 Product: Wine Version: 1.9.7 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: minor Priority: P2 Component: bcrypt Assignee: wine-bugs@winehq.org Reporter: charles.gorand.dev@gmail.com Distribution: ---
Created attachment 54138 --> https://bugs.winehq.org/attachment.cgi?id=54138 Doom4 logs
Distribution : Linux 4.3.0-1-amd64 #1 SMP Debian 4.3.3-5 (2016-01-04) x86_64 GNU/Linux
Description : I have access to Doom4 Closed Beta, the game launch successfully. On Main menu, If I click on multiplayer button, I get the following message : "Unable to obtain title storage. Please check your network connection and try again."
Analysis :
After adding some logs in Wine, I saw that RNG & AES algorithm are not implemented in bcrypt_main.c
Solutions :
Implement RNG and AES algorithm in bcrypt.dll.so. I tried to implement it myself, but I'm not familiar with encryption. Any help would be appreciate. It looks RSA is not implemented too. (bug 39582)
https://bugs.winehq.org/show_bug.cgi?id=40406
--- Comment #1 from Bruno Jesus 00cpxxx@gmail.com --- Did you check if a native bcrypt dll fixes the issue to ensure this is the main reason?
https://bugs.winehq.org/show_bug.cgi?id=40406
--- Comment #2 from charles.gorand.dev@gmail.com --- When using native bcrypt.dll, it fails to load.
I put some logs in loader.c and the dll entry points return FALSE :
retv = call_dll_entry_point( entry, module, reason, lpReserved );
=> retv = 0
Then I cannot go further as it's native dll code.
https://bugs.winehq.org/show_bug.cgi?id=40406
--- Comment #3 from Bruno Jesus 00cpxxx@gmail.com --- Hans Leidekker has worked in the RNG part, it was committed today:
http://source.winehq.org/git/wine.git/?a=commit;h=6415947e09fd4ac9cc7e80f82a...
You may try wine-git to check if it goes any further without AES.
https://bugs.winehq.org/show_bug.cgi?id=40406
--- Comment #4 from charles.gorand.dev@gmail.com --- The closed beta ended yesterday. I cannot verify yet.
Have to wait next beta or the game release (13th of may if I'm not wrong)
https://bugs.winehq.org/show_bug.cgi?id=40406
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |6415947e09fd4ac9cc7e80f82a0 | |e95cf24126423 Status|UNCONFIRMED |RESOLVED Severity|minor |normal Resolution|--- |FIXED Summary|bcrypt : |Doom 4 requires bcrypt RNG |BCryptOpenAlgorithmProvider |provider |: Need RNG and AES for | |Doom4 |
--- Comment #5 from Bruno Jesus 00cpxxx@gmail.com --- I believe it's better to split the bug about the 2 different bcrypt requirements since AES will require considerably more work.
Lets make this one about RNG and resolve with Hans's patch.
https://bugs.winehq.org/show_bug.cgi?id=40406
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #6 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 1.9.8.
https://bugs.winehq.org/show_bug.cgi?id=40406
Michael Stefaniuc mstefani@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mstefani@redhat.com Target Milestone|--- |1.8.x
https://bugs.winehq.org/show_bug.cgi?id=40406
--- Comment #7 from Michael Stefaniuc mstefani@redhat.com --- Remove 1.8.x target milestone from bugs that didn't make it into 1.8.x for one reason or another. This are all included in the stable 2.0 release.
https://bugs.winehq.org/show_bug.cgi?id=40406
Michael Stefaniuc mstefani@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|1.8.x |---