[issue21288] hashlib.pbkdf2_hmac Hash Constructor

Yury Selivanov report at bugs.python.org
Thu Apr 17 23:21:12 CEST 2014


Yury Selivanov added the comment:

On 2014-04-17, 5:02 PM, Christian Heimes wrote:
> Christian Heimes added the comment:
>
> A callable wouldn't work for the OpenSSL back end of PBKDF2. The function takes a digest pointer. I have to think about a solution...
>
> Sorry for the brevity, I still don't have proper internet at home.
>

We can accept only hashlib functions, and continue passing their names 
to the OpenSSL backend. A bit ugly and limited solution (no user-defined 
hash functions) for a better looking API.

Yury

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21288>
_______________________________________


More information about the Python-bugs-list mailing list