Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RC4 & MD5 #5

Open
zerog2k opened this issue Nov 10, 2021 · 0 comments · May be fixed by #7
Open

RC4 & MD5 #5

zerog2k opened this issue Nov 10, 2021 · 0 comments · May be fixed by #7

Comments

@zerog2k
Copy link

zerog2k commented Nov 10, 2021

Discovered while reversing some stuff encrypted with WinCrypt API, that MS's actual implementation of CryptDeriveKey for RC4 (and at least MD5) just takes the first 5 bytes of the input md5 hash, and pads the remaining 11 bytes with zeros (rather than the entire md5 hash).

https://github.com/crappycrypto/wincrypto/blob/master/wincrypto/api.py#L92-L105

zerog2k added a commit to zerog2k/wincrypto that referenced this issue Dec 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant