[issue19254] Python implementation of PBKDF2_HMAC
Roundup Robot added the comment: New changeset e73627483d2f by Christian Heimes in branch 'default': Issue #19254: Provide an optimized Python implementation of PBKDF2_HMAC http://hg.python.org/cpython/rev/e73627483d2f -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19254 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19254] Python implementation of PBKDF2_HMAC
Christian Heimes added the comment: Serhiy, I have taken your review into account. I still need to use memoryview() in order to handle all types that are supported by the format char y*. -- components: +Library (Lib) resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19254 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19254] Python implementation of PBKDF2_HMAC
Christian Heimes added the comment: Here is an optimized version with inline HMAC. Contrary to the implementations in OpenSSL, PyCrypto, and pbkdf2.py the length of the password has almost no impact on the runtime of my implementation. -- Added file: http://bugs.python.org/file32112/pbkdf2_py2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19254 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19254] Python implementation of PBKDF2_HMAC
Christian Heimes added the comment: I have optimized XOR and now it's even faster than OpenSSL's code for reasonable long passwords. :( -- Added file: http://bugs.python.org/file32113/pbkdf2_py3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19254 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19254] Python implementation of PBKDF2_HMAC
Changes by Stefan Krah stefan-use...@bytereef.org: -- nosy: +skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19254 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19254] Python implementation of PBKDF2_HMAC
Antoine Pitrou added the comment: I have optimized XOR and now it's even faster than OpenSSL's code for reasonable long passwords. :( Uh... and it gives the right results? Perhaps OpenSSL should be reimplemented in Python :-) If your code is resistant to timing attacks, I suppose we don't need the C implementation anymore? Or does it have a larger startup cost? (what is a reasonably long password for you? 10 chars or 64? :-)) -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19254 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19254] Python implementation of PBKDF2_HMAC
Serhiy Storchaka added the comment: Christian, does you noticed my comments on Rietveld? -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19254 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19254] Python implementation of PBKDF2_HMAC
New submission from Christian Heimes: The patch provides a Python implementation of pbkdf2_hmac with Python's hmac module. Although I'm using some tricks it's more than six times slower than OpenSSL's implementation. -- files: pbkdf2_py.patch keywords: patch messages: 199808 nosy: christian.heimes priority: normal severity: normal stage: patch review status: open title: Python implementation of PBKDF2_HMAC type: enhancement versions: Python 3.4 Added file: http://bugs.python.org/file32101/pbkdf2_py.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19254 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com