[Bug 16365] Archlord Episode 3 Client crashes on startup (decrypting files with a RC4 session key derived from MD5 hash fails, only 40 bits are used, salt is dropped)

wine-bugs at winehq.org wine-bugs at winehq.org
Tue Nov 12 20:49:57 CST 2013


http://bugs.winehq.org/show_bug.cgi?id=16365

--- Comment #16 from Dmitry Timoshkov <dmitry at baikal.ru> 2013-11-12 20:49:57 CST ---
(In reply to comment #15)
> attached is a small C application I wrote which resembles the game code for
> decrypting files.
> Can be used for testing or other purposes ;-)

There is a small bug in your test app:

if (!CryptDeriveKey(cprov, CALG_RC4, chash, strlen(passwd), &ckey))
    return FALSE;

The 4th parameter of CryptDeriveKey is flags, not the length of some kind.
Probably it should be CRYPT_CREATE_SALT (0x0004) if strlen("1111") works
by a pure luck :)

-- 
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.



More information about the wine-bugs mailing list