[pypy-issue] [issue957] module hashlib is broken for non-standard digest algorithms
Nirbheek Chauhan
tracker at bugs.pypy.org
Wed Dec 7 02:55:03 CET 2011
New submission from Nirbheek Chauhan <nirbheek.chauhan at gmail.com>:
Hash functions supported by openssl which aren't already in the hashlib.py tests
do not work, and either return a blank digest, or raise SIGABRT.
A test case is attached.
* All hashes listed in hashlib.algorithms work fine (these are also in the tests).
* "ripemd160", "md4", "mdc2", "sha" give a blank digest
* "whirlpool" raises SIGABRT, free(): invalid next size (fast)
This is with openssl-1.0.0e, but I don't think it's dependent on that since
these codepaths were never checked by the testsuite in the first place.
----------
files: test_all_hashes.py
messages: 3548
nosy: nirbheek, pypy-issue
priority: bug
release: 1.7
status: unread
title: module hashlib is broken for non-standard digest algorithms
________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue957>
________________________________________
More information about the pypy-issue
mailing list