Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-36515: Disable unaligned memory access in _sha3 on ARM (GH-25927) | Gregory P. Smith | 2021-05-05 | 1 | -0/+5 |
| | | | | | Contributed-By: Matthias Klose Automerge-Triggered-By: GH:tiran | ||||
* | bpo-43908: Mark ssl, hash, and hmac types as immutable (GH-25792) | Christian Heimes | 2021-05-02 | 1 | -1/+1 |
| | | | Signed-off-by: Christian Heimes <christian@python.org> | ||||
* | bpo-43362: Fix invalid free and return check in _sha3 module (GH-25463) | Christian Heimes | 2021-04-18 | 1 | -3/+9 |
| | | | | | | | | | | | Commit 93d50a6a8d0c5d332c11aef267e66573a09765ac / GH-21855 changed the order of variable definitions, which introduced a potential invalid free bug. Py_buffer object is now initialized earlier and the result of Keccak initialize is verified. Co-authored-by: Alex Henrie <alexhenrie24@gmail.com> Signed-off-by: Christian Heimes <christian@python.org> Co-authored-by: Alex Henrie <alexhenrie24@gmail.com> | ||||
* | bpo-42519: Replace PyObject_MALLOC() with PyObject_Malloc() (GH-23587) | Victor Stinner | 2020-12-01 | 1 | -1/+1 |
| | | | | | | | | | No longer use deprecated aliases to functions: * Replace PyObject_MALLOC() with PyObject_Malloc() * Replace PyObject_REALLOC() with PyObject_Realloc() * Replace PyObject_FREE() with PyObject_Free() * Replace PyObject_Del() with PyObject_Free() * Replace PyObject_DEL() with PyObject_Free() | ||||
* | bpo-1635741: Port _sha3 module to multi-phase init (GH-21855) | Mohamed Koubaa | 2020-09-02 | 1 | -136/+193 |
| | | | | Port the _sha3 extension module to multi-phase init (PEP 489). Convert static types to heap types. | ||||
* | bpo-40302: Replace PY_INT64_T with int64_t (GH-19573) | Victor Stinner | 2020-04-17 | 1 | -3/+3 |
| | | | | | | | | | * Replace PY_INT64_T with int64_t * Replace PY_UINT32_T with uint32_t * Replace PY_UINT64_T with uint64_t sha3module.c no longer checks if PY_UINT64_T is defined since it's always defined and uint64_t is always available on platforms supported by Python. | ||||
* | bpo-39573: Add Py_SET_TYPE() function (GH-18394) | Victor Stinner | 2020-02-07 | 1 | -1/+1 |
| | | | Add Py_SET_TYPE() function to set the type of an object. | ||||
* | bpo-9216: Add usedforsecurity to hashlib constructors (GH-16044) | Christian Heimes | 2019-09-13 | 2 | -20/+69 |
| | | | | | The usedforsecurity keyword only argument added to the hash constructors is useful for FIPS builds and similar restrictive environment with non-technical requirements that legacy algorithms be forbidden by their implementations without being explicitly annotated as not being used for any security related purposes. Linux distros with FIPS support benefit from this being standard rather than making up their own way(s) to do it. Contributed and Signed-off-by: Christian Heimes christian@python.org | ||||
* | bpo-36974: tp_print -> tp_vectorcall_offset and tp_reserved -> tp_as_async ↵ | Jeroen Demeyer | 2019-05-31 | 1 | -2/+2 |
| | | | | | | | | | (GH-13464) Automatically replace tp_print -> tp_vectorcall_offset tp_compare -> tp_as_async tp_reserved -> tp_as_async | ||||
* | closes bpo-35643: Fix a SyntaxWarning: invalid escape sequence in ↵ | Mickaël Schoentgen | 2019-01-02 | 1 | -1/+1 |
| | | | | Modules/_sha3/cleanup.py (GH-11411) | ||||
* | bpo-23867: Argument Clinic: inline parsing code for a single positional ↵ | Serhiy Storchaka | 2018-12-25 | 1 | -3/+3 |
| | | | | parameter. (GH-9689) | ||||
* | 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 |