summaryrefslogtreecommitdiffstats
path: root/Modules/_sha3
Commit message (Collapse)AuthorAgeFilesLines
* bpo-34922: Fix integer overflow in the digest() and hexdigest() methods ↵Serhiy Storchaka2018-10-111-0/+4
| | | | | (GH-9751) for the SHAKE algorithm in the hashlib module.
* Fix misleading mentions of tp_size in comments (GH-9093)Peter Eisentraut2018-09-101-1/+1
| | | | Many type object initializations labeled a field "tp_size" in the comment, but the name of that field is tp_basicsize.
* bpo-33729: Fix issues with arguments parsing in hashlib. (GH-8346)Serhiy Storchaka2018-07-312-80/+51
| | | | | | | | | | | | | | | | | | | | | | | | * 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.
* bpo-32240: Add the const qualifier to declarations of PyObject* array ↵Serhiy Storchaka2017-12-151-3/+3
| | | | arguments. (#4746)
* bpo-31370: Remove support for threads-less builds (#3385)Antoine Pitrou2017-09-071-14/+0
| | | | | | * Remove Setup.config * Always define WITH_THREAD for compatibility.
* bpo-29464: Rename METH_FASTCALL to METH_FASTCALL|METH_KEYWORDS and make (#1955)Serhiy Storchaka2017-07-031-3/+3
| | | | | the bare METH_FASTCALL be used for functions with positional-only parameters.
* Issue #28999: Use Py_RETURN_NONE, Py_RETURN_TRUE and Py_RETURN_FALSE whereverSerhiy Storchaka2017-01-231-2/+1
| | | | possible. Patch is writen with Coccinelle.
* Run Argument Clinic: METH_VARARGS=>METH_FASTCALLVictor Stinner2017-01-171-1/+1
| | | | | Issue #29286. Run Argument Clinic to get the new faster METH_FASTCALL calling convention for functions using only positional arguments.
* Rename _PyArg_ParseStack to _PyArg_ParseStackAndKeywordsVictor Stinner2017-01-171-2/+2
| | | | Issue #29286.
* Don't define PY_WITH_KECCAKChristian Heimes2016-09-211-2/+0
|
* Issue #27810: Regenerate Argument Clinic.Serhiy Storchaka2016-09-111-7/+7
|
* clinic: PY_LONG_LONG -> long longBenjamin Peterson2016-09-081-10/+16
|
* sha3: let's keep it simple and always allocate enough extra space for ↵Christian Heimes2016-09-081-3/+2
| | | | uint64_t[20].
* Issue #16113: SHA3: allocate extra memory for lane extraction and check ↵Christian Heimes2016-09-081-4/+12
| | | | return value of PyModule_Create()
* Issue #16113: one more C90 violation in big endian code.Christian Heimes2016-09-071-1/+1
|
* Issue #16113: take 2 on big endian machines.Christian Heimes2016-09-071-9/+11
|
* Issue #16113: KeccakP-1600-opt64 does not support big endian platforms yet.Christian Heimes2016-09-071-1/+4
|
* Issue #16113: Add SHA-3 and SHAKE support to hashlib module.Christian Heimes2016-09-0720-0/+6299
|
* * Issue #16113: Remove sha3 module again.Martin v. Löwis2014-01-0323-7930/+0
| | | | Patch by Christian Heimes, with modifications.
* Issue #19520: Fix (the last!) compiler warning on 32bit Windows, in _sha3Zachary Ware2013-11-171-1/+1
|
* Issue #18742: Expose the internal hash type object for ABCs.Christian Heimes2013-10-221-1/+9
|
* yet another WITH_THREADS typoChristian Heimes2013-07-311-1/+1
|
* Fix _sha3 module to actually release the GIL around its update function.Christian Heimes2013-07-311-1/+1
| | | | gcov is great.
* Issue #16847: Fixed improper use of _PyUnicode_CheckConsistency() inChristian Heimes2013-01-031-0/+2
| | | | | non-pydebug builds. Several extension modules now compile cleanly when assert()s are enabled in standard builds (-DDEBUG flag).
* Issue #16166: Add PY_LITTLE_ENDIAN and PY_BIG_ENDIAN macros and unifiedChristian Heimes2012-10-174-11/+14
| | | | endianess detection and handling.
* Issue #16234: Modify sha3's block_size method to return NotImplemented.Christian Heimes2012-10-141-2/+6
| | | | This makes the sha3 types unusable from the hmac module. HMAC-SHA3 hasn't been specified yet.
* Update comment: SPARC requires proper alignmentChristian Heimes2012-10-141-1/+2
|
* get 64bit platforms without uint64 right againChristian Heimes2012-10-141-3/+5
|
* Force 32bit Keccak implementation on SPARC. It look like the Solaris CC ↵Christian Heimes2012-10-141-8/+14
| | | | compiler doesn't like the address alignment.
* Keccak: fromBytesToWord() and fromWordToBytes() are required on 64bit big ↵Christian Heimes2012-10-131-4/+6
| | | | endian platforms
* brg_endian.h is back againChristian Heimes2012-10-071-1/+0
|
* re-add brg_endian.h to debug issue in big endian SPARC machineChristian Heimes2012-10-075-7/+150
|
* remove #warning from sha3module.cChristian Heimes2012-10-061-1/+0
|
* fix possible memory leak, dealloc newobjChristian Heimes2012-10-061-2/+1
|
* Issue #16113: integrade SHA-3 (Keccak) patch from ↵Christian Heimes2012-10-0622-0/+7762
http://hg.python.org/sandbox/cheimes