[issue26798] add BLAKE2 to hashlib

Christian Heimes report at bugs.python.org
Sun May 8 14:04:23 EDT 2016


Christian Heimes added the comment:

Thanks for your review, Dmitry.

I have replaced verify() with compare_digest().

Python requires a C89 compatible compiler and 32bit architecture. C89 doesn't mandate 64bit integers. As far as I remember there is (or was) one buildbot with a compiler, that doesn't have 64 ints on an old SPARC system. All major platforms have 64bit ints. I might modify the implementation when the patch has landed.

#self.assertIn(h.name, self.supported_hash_names)
I now check for guaranteed and eventually supported hashes.

SSE is enabled on X64_86. I forgot to remove the comments.


The test suite is missing tests for salt, personal and tree hashing. I have asked Zooko and JPA for vectors.

----------
Added file: http://bugs.python.org/file42783/BLAKE2-hash-algorithm-for-CPython-2.patch

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


More information about the Python-bugs-list mailing list