Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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 | ||||
* | bpo-36209: Fix typo on hashlib error message (GH-12194) | Emmanuel Arias | 2019-03-06 | 1 | -1/+1 |
| | |||||
* | bpo-36179: Fix ref leaks in _hashopenssl (GH-12158) | Christian Heimes | 2019-03-04 | 1 | -5/+7 |
| | | | | | | | | | | Fix two unlikely reference leaks in _hashopenssl. The leaks only occur in out-of-memory cases. Thanks to Charalampos Stratakis. Signed-off-by: Christian Heimes <christian@python.org> https://bugs.python.org/issue36179 | ||||
* | Dead code removal from _hashopenssl. (GH-11379) | Gregory P. Smith | 2018-12-31 | 1 | -80/+18 |
| | | | | HASH_OBJ_CONSTRUCTOR has always been defined as 0 since I created hashlib in Python 2.5. Delete all code associated with it. | ||||
* | bpo-20182: AC convert remaining functions/methods in _hashopenssl.c (GH-9213) | Tal Einat | 2018-12-27 | 1 | -99/+109 |
| | |||||
* | bpo-33012: Fix invalid function cast warnings with gcc 8. (GH-6749) | Serhiy Storchaka | 2018-11-27 | 1 | -3/+3 |
| | | | | | | Fix invalid function cast warnings with gcc 8 for method conventions different from METH_NOARGS, METH_O and METH_VARARGS excluding Argument Clinic generated code. | ||||
* | bpo-20216: Correct docstrings of digest() methods in hashlib. (GH-9873) | Srinivas Thatiparthy (శ్రీనివాస్ తాటిపర్తి) | 2018-10-19 | 1 | -1/+1 |
| | |||||
* | closes bpo-34646: Remove PyAPI_* macros from declarations. (GH-9218) | Benjamin Peterson | 2018-09-12 | 1 | -1/+1 |
| | |||||
* | bpo-33729: Fix issues with arguments parsing in hashlib. (GH-8346) | Serhiy Storchaka | 2018-07-31 | 1 | -2/+6 |
| | | | | | | | | | | | | | | | | | | | | | | | | * 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-31787: Prevent refleaks when calling __init__() more than once (GH-3995) | Oren Milman | 2018-02-13 | 1 | -2/+2 |
| | |||||
* | bpo-32746: Fix multiple typos (GH-5144) | Leo Arias | 2018-02-04 | 1 | -1/+1 |
| | | | Fix typos found by codespell in docs, docstrings, and comments. | ||||
* | bpo-32433: Optimized HMAC digest (#5023) | Christian Heimes | 2018-01-27 | 1 | -2/+57 |
| | | | | | | | The hmac module now has hmac.digest(), which provides an optimized HMAC digest for short messages. hmac.digest() is up to three times faster than hmac.HMAC().digest(). Signed-off-by: Christian Heimes <christian@python.org> | ||||
* | bpo-32240: Add the const qualifier to declarations of PyObject* array ↵ | Serhiy Storchaka | 2017-12-15 | 1 | -1/+1 |
| | | | | arguments. (#4746) | ||||
* | Replace KB unit with KiB (#4293) | Victor Stinner | 2017-11-08 | 1 | -1/+1 |
| | | | | | | | | | | | kB (*kilo* byte) unit means 1000 bytes, whereas KiB ("kibibyte") means 1024 bytes. KB was misused: replace kB or KB with KiB when appropriate. Same change for MB and GB which become MiB and GiB. Change the output of Tools/iobench/iobench.py. Round also the size of the documentation from 5.5 MB to 5 MiB. | ||||
* | bpo-31370: Remove support for threads-less builds (#3385) | Antoine Pitrou | 2017-09-07 | 1 | -10/+0 |
| | | | | | | * Remove Setup.config * Always define WITH_THREAD for compatibility. | ||||
* | bpo-30102: Call OPENSSL_add_all_algorithms_noconf (#3112) | Christian Heimes | 2017-09-05 | 1 | -1/+4 |
| | | | | | | | | The ssl and hashlib modules now call OPENSSL_add_all_algorithms_noconf() on OpenSSL < 1.1.0. The function detects CPU features and enables optimizations on some CPU architectures such as POWER8. Patch is based on research from Gustavo Serra Scalet. Signed-off-by: Christian Heimes <christian@python.org> | ||||
* | Remove _PyArg_NoStackKeywords(). (#2641) | Serhiy Storchaka | 2017-07-10 | 1 | -6/+2 |
| | |||||
* | bpo-29464: Rename METH_FASTCALL to METH_FASTCALL|METH_KEYWORDS and make (#1955) | Serhiy Storchaka | 2017-07-03 | 1 | -1/+1 |
| | | | | | the bare METH_FASTCALL be used for functions with positional-only parameters. | ||||
* | bpo-20627: Fix error message when keyword arguments are used (#2115) | Sylvain | 2017-06-15 | 1 | -2/+2 |
| | |||||
* | bpo-9146: Raise a ValueError if OpenSSL fails to init a hash func. (#1777) | Gregory P. Smith | 2017-05-24 | 1 | -9/+36 |
| | | | | This helps people in weird FIPS mode environments where common things like MD5 are not available in the binary as a matter of policy. | ||||
* | _hashopenssl uses METH_FASTCALL | Victor Stinner | 2017-01-17 | 1 | -3/+7 |
| | |||||
* | Issue #27928: Add scrypt (password-based key derivation function) to hashlib ↵ | Christian Heimes | 2016-09-06 | 1 | -0/+129 |
| | | | | module (requires OpenSSL 1.1.0). | ||||
* | Issue #26470: Port ssl and hashlib module to OpenSSL 1.1.0. | Christian Heimes | 2016-09-05 | 1 | -59/+106 |
|\ | |||||
| * | Issue #26470: Port ssl and hashlib module to OpenSSL 1.1.0. | Christian Heimes | 2016-09-05 | 1 | -59/+106 |
| | | |||||
* | | Issue #27895: Spelling fixes (Contributed by Ville Skyttä). | Raymond Hettinger | 2016-08-30 | 1 | -1/+1 |
|/ | |||||
* | Issue #25523: Merge "a" to "an" fixes from 3.4 into 3.5 | Martin Panter | 2015-11-02 | 1 | -1/+1 |
|\ | |||||
| * | Issue #25523: Correct "a" article to "an" article | Martin Panter | 2015-11-02 | 1 | -1/+1 |
| | | | | | | | | | | | | This changes the main documentation, doc strings, source code comments, and a couple error messages in the test suite. In some cases the word was removed or edited some other way to fix the grammar. | ||||
* | | merge 3.4 | Benjamin Peterson | 2015-09-27 | 1 | -2/+2 |
|\ \ | |/ | |||||
| * | fix spacing | Benjamin Peterson | 2015-09-27 | 1 | -2/+2 |
| | | |||||
* | | Issue9951: update _hashopenssl and md5module to use _Py_strhex(). | Gregory P. Smith | 2015-04-25 | 1 | -19/+3 |
| | | | | | | | | Also update _posixsubprocess to use Py_hexdigits instead of its own constant. | ||||
* | | Issue #23143: Remove compatibility with OpenSSLs older than 0.9.8. | Antoine Pitrou | 2015-01-03 | 1 | -12/+0 |
|/ | | | | (now the hashlib module) | ||||
* | exclude _hashopenssl.c:_setException() from LCOV coverage | Christian Heimes | 2013-12-05 | 1 | -0/+2 |
| | |||||
* | Remove unused code path from PBKDF2 that is causing a warning on Win64 | Christian Heimes | 2013-11-18 | 1 | -5/+1 |
| | |||||
* | Fix compiler warnings on Windows 64 bit: add an explicit cast from Py_ssize_t | Victor Stinner | 2013-11-15 | 1 | -1/+1 |
| | | | | to int, password.len was checked for being smaller than INT_MAX. | ||||
* | Issue #18582: fix memory leak in pbkdf2 code | Christian Heimes | 2013-11-06 | 1 | -0/+1 |
| | |||||
* | Silence a compiler warning about an unused function | Brett Cannon | 2013-11-01 | 1 | -28/+28 |
| | |||||
* | Issue #19420: Fix reference leak in module initalization code of _hashopenssl.c | Christian Heimes | 2013-10-29 | 1 | -1/+1 |
| | |||||
* | Issue #18742: Expose the internal hash type object for ABCs. | Christian Heimes | 2013-10-22 | 1 | -3/+1 |
| | |||||
* | Load SSL's error strings in hashlib. | Christian Heimes | 2013-10-21 | 1 | -0/+1 |
| | | | | Without ERR_load_crypto_strings() functions like ERR_lib_error_string() return NULL. | ||||
* | Make PKCS5_PBKDF2_HMAC_fast() a static function | Christian Heimes | 2013-10-20 | 1 | -4/+5 |
| | |||||
* | Issue #18582: HMAC_CTX_copy() is not available on OpenSSL < 1.0 | Christian Heimes | 2013-10-19 | 1 | -1/+2 |
| | |||||
* | Issue #18582: provide a faster C implementation of pbkdf2_hmac that works ↵ | Christian Heimes | 2013-10-19 | 1 | -6/+94 |
| | | | | with OpenSSL < 1.0 | ||||
* | Issue #18582: Add 'pbkdf2_hmac' to the hashlib module. | Christian Heimes | 2013-10-12 | 1 | -0/+136 |
| | |||||
* | In the _hashlib module, only initialize the static data for OpenSSL's | Gregory P. Smith | 2013-02-02 | 1 | -6/+9 |
|\ | | | | | | | | | constructors once, to avoid memory leaks when finalizing and re-initializing the Python interpreter. | ||||
| * | In the _hashlib module, only initialize the static data for OpenSSL's | Gregory P. Smith | 2013-02-02 | 1 | -6/+9 |
| |\ | | | | | | | | | | | | | constructors once, to avoid memory leaks when finalizing and re-initializing the Python interpreter. | ||||
| | * | In the _hashlib module, only initialize the static data for OpenSSL's | Gregory P. Smith | 2013-02-02 | 1 | -6/+9 |
| | | | | | | | | | | | | | | | constructors once, to avoid memory leaks when finalizing and re-initializing the Python interpreter. | ||||
* | | | Issue #16113: integrade SHA-3 (Keccak) patch from ↵ | Christian Heimes | 2012-10-06 | 1 | -22/+0 |
|/ / | | | | | | | http://hg.python.org/sandbox/cheimes | ||||
* | | Issue #13088: Add shared Py_hexdigits constant to format a number into base 16 | Victor Stinner | 2011-10-14 | 1 | -5/+3 |
|/ | |||||
* | hashlib has two new constant attributes: algorithms_guaranteed and | Gregory P. Smith | 2010-09-06 | 1 | -1/+69 |
| | | | | | | | | algorithms_avaiable that respectively list the names of hash algorithms guaranteed to exist in all Python implementations and the names of hash algorithms available in the current process. Renames the attribute new in 3.2a0 'algorithms' to 'algorithms_guaranteed'. | ||||
* | Issue #2443: Added a new macro, Py_VA_COPY, which is equivalent to C99 | Alexander Belopolsky | 2010-08-11 | 1 | -1/+1 |
| | | | | | va_copy, but available on all python platforms. Untabified a few unrelated files. |