Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-34922: Fix integer overflow in the digest() and hexdigest() methods ↵ | Serhiy Storchaka | 2018-10-11 | 1 | -0/+4 |
| | | | | | (GH-9751) for the SHAKE algorithm in the hashlib module. | ||||
* | Fix misleading mentions of tp_size in comments (GH-9093) | Peter Eisentraut | 2018-09-10 | 1 | -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 Storchaka | 2018-07-31 | 2 | -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 Storchaka | 2017-12-15 | 1 | -3/+3 |
| | | | | arguments. (#4746) | ||||
* | bpo-31370: Remove support for threads-less builds (#3385) | Antoine Pitrou | 2017-09-07 | 1 | -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 Storchaka | 2017-07-03 | 1 | -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 wherever | Serhiy Storchaka | 2017-01-23 | 1 | -2/+1 |
| | | | | possible. Patch is writen with Coccinelle. | ||||
* | Run Argument Clinic: METH_VARARGS=>METH_FASTCALL | Victor Stinner | 2017-01-17 | 1 | -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_ParseStackAndKeywords | Victor Stinner | 2017-01-17 | 1 | -2/+2 |
| | | | | Issue #29286. | ||||
* | Don't define PY_WITH_KECCAK | Christian Heimes | 2016-09-21 | 1 | -2/+0 |
| | |||||
* | Issue #27810: Regenerate Argument Clinic. | Serhiy Storchaka | 2016-09-11 | 1 | -7/+7 |
| | |||||
* | clinic: PY_LONG_LONG -> long long | Benjamin Peterson | 2016-09-08 | 1 | -10/+16 |
| | |||||
* | sha3: let's keep it simple and always allocate enough extra space for ↵ | Christian Heimes | 2016-09-08 | 1 | -3/+2 |
| | | | | uint64_t[20]. | ||||
* | Issue #16113: SHA3: allocate extra memory for lane extraction and check ↵ | Christian Heimes | 2016-09-08 | 1 | -4/+12 |
| | | | | return value of PyModule_Create() | ||||
* | Issue #16113: one more C90 violation in big endian code. | Christian Heimes | 2016-09-07 | 1 | -1/+1 |
| | |||||
* | Issue #16113: take 2 on big endian machines. | Christian Heimes | 2016-09-07 | 1 | -9/+11 |
| | |||||
* | Issue #16113: KeccakP-1600-opt64 does not support big endian platforms yet. | Christian Heimes | 2016-09-07 | 1 | -1/+4 |
| | |||||
* | Issue #16113: Add SHA-3 and SHAKE support to hashlib module. | Christian Heimes | 2016-09-07 | 20 | -0/+6299 |
| | |||||
* | * Issue #16113: Remove sha3 module again. | Martin v. Löwis | 2014-01-03 | 23 | -7930/+0 |
| | | | | Patch by Christian Heimes, with modifications. | ||||
* | Issue #19520: Fix (the last!) compiler warning on 32bit Windows, in _sha3 | Zachary Ware | 2013-11-17 | 1 | -1/+1 |
| | |||||
* | Issue #18742: Expose the internal hash type object for ABCs. | Christian Heimes | 2013-10-22 | 1 | -1/+9 |
| | |||||
* | yet another WITH_THREADS typo | Christian Heimes | 2013-07-31 | 1 | -1/+1 |
| | |||||
* | Fix _sha3 module to actually release the GIL around its update function. | Christian Heimes | 2013-07-31 | 1 | -1/+1 |
| | | | | gcov is great. | ||||
* | Issue #16847: Fixed improper use of _PyUnicode_CheckConsistency() in | Christian Heimes | 2013-01-03 | 1 | -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 unified | Christian Heimes | 2012-10-17 | 4 | -11/+14 |
| | | | | endianess detection and handling. | ||||
* | Issue #16234: Modify sha3's block_size method to return NotImplemented. | Christian Heimes | 2012-10-14 | 1 | -2/+6 |
| | | | | This makes the sha3 types unusable from the hmac module. HMAC-SHA3 hasn't been specified yet. | ||||
* | Update comment: SPARC requires proper alignment | Christian Heimes | 2012-10-14 | 1 | -1/+2 |
| | |||||
* | get 64bit platforms without uint64 right again | Christian Heimes | 2012-10-14 | 1 | -3/+5 |
| | |||||
* | Force 32bit Keccak implementation on SPARC. It look like the Solaris CC ↵ | Christian Heimes | 2012-10-14 | 1 | -8/+14 |
| | | | | compiler doesn't like the address alignment. | ||||
* | Keccak: fromBytesToWord() and fromWordToBytes() are required on 64bit big ↵ | Christian Heimes | 2012-10-13 | 1 | -4/+6 |
| | | | | endian platforms | ||||
* | brg_endian.h is back again | Christian Heimes | 2012-10-07 | 1 | -1/+0 |
| | |||||
* | re-add brg_endian.h to debug issue in big endian SPARC machine | Christian Heimes | 2012-10-07 | 5 | -7/+150 |
| | |||||
* | remove #warning from sha3module.c | Christian Heimes | 2012-10-06 | 1 | -1/+0 |
| | |||||
* | fix possible memory leak, dealloc newobj | Christian Heimes | 2012-10-06 | 1 | -2/+1 |
| | |||||
* | Issue #16113: integrade SHA-3 (Keccak) patch from ↵ | Christian Heimes | 2012-10-06 | 22 | -0/+7762 |
http://hg.python.org/sandbox/cheimes |