http://bugs.winehq.org/show_bug.cgi?id=34921
Bug #: 34921 Summary: Need for Speed: The Run crashes with Unimplemented function bcrypt.dll.BCryptGenRandom Product: Wine Version: 1.7.6 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: andrey.goosev@gmail.com Classification: Unclassified
Created attachment 46535 --> http://bugs.winehq.org/attachment.cgi?id=46535 log
Crashes at start.
http://bugs.winehq.org/show_bug.cgi?id=34921
--- Comment #1 from Bruno Jesus 00cpxxx@gmail.com 2013-11-15 09:39:02 CST --- Created attachment 46536 --> http://bugs.winehq.org/attachment.cgi?id=46536 bad implementation
I needed this function for other program, I ended up writing a very simple implementation that at least helped me. I could not find it so I rewrote it, it was not tested.
http://bugs.winehq.org/show_bug.cgi?id=34921
--- Comment #2 from Nikolay Sivov bunglehead@gmail.com 2013-11-15 12:45:07 CST --- It'd be interesting to see +relay with this implementation to get some info on function arguments.
http://bugs.winehq.org/show_bug.cgi?id=34921
--- Comment #3 from Andrey Gusev andrey.goosev@gmail.com 2013-11-15 13:28:50 CST --- (In reply to comment #1)
Created attachment 46536 [details] bad implementation
I needed this function for other program, I ended up writing a very simple implementation that at least helped me. I could not find it so I rewrote it, it was not tested.
Bruno, I confirm that your patch fixes the problem. After that way goes to bug 24517.
http://bugs.winehq.org/show_bug.cgi?id=34921
--- Comment #4 from Nikolay Sivov bunglehead@gmail.com 2013-11-15 14:13:35 CST --- Andrey, could you please attach +relay log with this patch?
http://bugs.winehq.org/show_bug.cgi?id=34921
--- Comment #5 from Bruno Jesus 00cpxxx@gmail.com 2013-11-15 15:46:02 CST --- (In reply to comment #2)
It'd be interesting to see +relay with this implementation to get some info on function arguments.
I think it was called with a NULL algorithm and with dwFlags & BCRYPT_USE_SYSTEM_PREFERRED_RNG.
Because otherwise it would have needed to call BCryptOpenAlgorithmProvider which is also not implemented.
This guessing is based on information from http://msdn.microsoft.com/en-us/library/Windows/desktop/aa375458%28v=vs.85%2...
http://bugs.winehq.org/show_bug.cgi?id=34921
--- Comment #6 from Andrey Gusev andrey.goosev@gmail.com 2013-11-15 16:13:22 CST --- (In reply to comment #4)
Andrey, could you please attach +relay log with this patch?
Can send to you directly, because of archive size is 1.1 Mb.
http://bugs.winehq.org/show_bug.cgi?id=34921
--- Comment #7 from Henri Verbeet hverbeet@gmail.com 2013-11-18 10:58:44 CST --- As an aside, did we ever look into using Nettle or perhaps gcrypt for implementing things like e.g. rsaenh and bcrypt?
http://bugs.winehq.org/show_bug.cgi?id=34921
Linards linards.liepins@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |linards.liepins@gmail.com
--- Comment #8 from Linards linards.liepins@gmail.com --- Same function is needed by Battlefield 3.
http://bugs.winehq.org/show_bug.cgi?id=34921
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW CC| |focht@gmx.net Summary|Need for Speed: The Run |Multiple games and |crashes with Unimplemented |applications need |function |bcrypt.dll.BCryptGenRandom |bcrypt.dll.BCryptGenRandom |(Need for Speed: The Run, | |Battlefield 3) Ever confirmed|0 |1
--- Comment #9 from Anastasius Focht focht@gmx.net --- Hello folks,
--- quote --- Same function is needed by Battlefield 3. --- quote ---
refining summary and confirming.
Regards
http://bugs.winehq.org/show_bug.cgi?id=34921
Jerome Leclanche adys.wh@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch
http://bugs.winehq.org/show_bug.cgi?id=34921
Jerome Leclanche adys.wh@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |adys.wh@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=34921
--- Comment #10 from Linards linards.liepins@gmail.com --- (In reply to comment #5)
(In reply to comment #2)
It'd be interesting to see +relay with this implementation to get some info on function arguments.
I think it was called with a NULL algorithm and with dwFlags & BCRYPT_USE_SYSTEM_PREFERRED_RNG.
Because otherwise it would have needed to call BCryptOpenAlgorithmProvider which is also not implemented.
This guessing is based on information from http://msdn.microsoft.com/en-us/library/Windows/desktop/aa375458%28v=vs. 85%29.aspx
Simply put Wine do not conbtaint at least minimum support for Windows Vista amd later introduced infrastructure: "Microsoft Windows Cryptographic Primitives Library" . WOuld this be a superset of Crypt32.dll ( Cryptographic Services )?
http://bugs.winehq.org/show_bug.cgi?id=34921
--- Comment #11 from Andrey Gusev andrey.goosev@gmail.com --- Should help http://source.winehq.org/patches/data/101409
http://bugs.winehq.org/show_bug.cgi?id=34921
Andrey Gusev andrey.goosev@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |crypt32
http://bugs.winehq.org/show_bug.cgi?id=34921
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|wine-bugs@winehq.org |00cpxxx@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=34921
--- Comment #12 from Austin English austinenglish@gmail.com --- (In reply to comment #11)
Should help http://source.winehq.org/patches/data/101409
Committed: https://source.winehq.org/git/wine.git/commitdiff/52aca431e4acb099ae66d56896...
please retest.
http://bugs.winehq.org/show_bug.cgi?id=34921
Andrey Gusev andrey.goosev@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #13 from Andrey Gusev andrey.goosev@gmail.com --- Tested with 1.7.12 and it's fixed. As I said before the next stop is bug 24517.
https://bugs.winehq.org/show_bug.cgi?id=34921
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #14 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 1.7.13.
http://bugs.winehq.org/show_bug.cgi?id=34921
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |a7578c7ae7ef1aa7bc2e8d0846a | |0bfc60bc664a2
https://bugs.winehq.org/show_bug.cgi?id=34921
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|crypt32 |bcrypt