Re: [Python-Dev] Right place for PBKDF2 wrapper

2013年10月14日 04:48:50 -0700

14.10.13 13:07, Antoine Pitrou написав(ла):
Le 2013年10月14日 12:47:03 +0300,
Serhiy Storchaka <[email protected]> a écrit :
13.10.13 13:39, Christian Heimes написав(ла):
Am 13.10.2013 08:32, schrieb Nick Coghlan:
+1 to hashlib from me (especially since we used that as the best
available home for compare_digest).
I'm afraid your memory doesn't serve you well. :(
compare_digest is implemented in _operator.c. Its official home is
hmac.compare_digest.
Could we move compare_digest() out of _operator.c? It makes Python
implementation of the operator module incomplete.
Or we could simply write a reference Python implementation :-)
It was discussed when compare_digest() was introdused. Looks as pure Python implementation is not possible (without destroying the purpose of compare_digest()). Even with C implementation we should be very careful.
_______________________________________________
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to