mirror of
https://github.com/python/cpython.git
synced 2024-11-24 18:34:43 +08:00
f1d36d8efa
* help(hashlib) didn't work because of incorrect module name in blake2b and blake2s classes. * Constructors blake2*(), sha3_*(), shake_*() and keccak_*() incorrectly accepted keyword argument "string" for binary data, but documented as accepting the "data" keyword argument. Now this parameter is positional-only. * Keyword-only parameters in blake2b() and blake2s() were not documented as keyword-only. * Default value for some parameters of blake2b() and blake2s() was None, which is not acceptable value. * The length argument for shake_*.digest() was wrapped out to 32 bits. * The argument for shake_128.digest() and shake_128.hexdigest() was not positional-only as intended. * TypeError messages for incorrect arguments in all constructors sha3_*(), shake_*() and keccak_*() incorrectly referred to sha3_224. Also made the following enhancements: * More accurately specified input and result types for strings, bytes and bytes-like objects. * Unified positional parameter names for update() and constructors. * Improved formatting. |
||
---|---|---|
.. | ||
clinic | ||
kcp | ||
cleanup.py | ||
README.txt | ||
sha3module.c |
Keccak Code Package =================== The files in kcp are taken from the Keccak Code Package. They have been slightly to be C89 compatible. The architecture specific header file KeccakP-1600-SnP.h ha been renamed to KeccakP-1600-SnP-opt32.h or KeccakP-1600-SnP-opt64.h. The 64bit files were generated with generic64lc/libkeccak.a.pack target, the 32bit files with generic32lc/libkeccak.a.pack.