summaryrefslogtreecommitdiffstats
path: root/Modules/_hashopenssl.c
Commit message (Collapse)AuthorAgeFilesLines
* bpo-36974: tp_print -> tp_vectorcall_offset and tp_reserved -> tp_as_async ↵Jeroen Demeyer2019-05-311-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 Arias2019-03-061-1/+1
|
* bpo-36179: Fix ref leaks in _hashopenssl (GH-12158)Christian Heimes2019-03-041-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. Smith2018-12-311-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 Einat2018-12-271-99/+109
|
* bpo-33012: Fix invalid function cast warnings with gcc 8. (GH-6749)Serhiy Storchaka2018-11-271-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-191-1/+1
|
* closes bpo-34646: Remove PyAPI_* macros from declarations. (GH-9218)Benjamin Peterson2018-09-121-1/+1
|
* bpo-33729: Fix issues with arguments parsing in hashlib. (GH-8346)Serhiy Storchaka2018-07-311-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 Milman2018-02-131-2/+2
|
* bpo-32746: Fix multiple typos (GH-5144)Leo Arias2018-02-041-1/+1
| | | Fix typos found by codespell in docs, docstrings, and comments.
* bpo-32433: Optimized HMAC digest (#5023)Christian Heimes2018-01-271-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 Storchaka2017-12-151-1/+1
| | | | arguments. (#4746)
* Replace KB unit with KiB (#4293)Victor Stinner2017-11-081-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 Pitrou2017-09-071-10/+0
| | | | | | * Remove Setup.config * Always define WITH_THREAD for compatibility.
* bpo-30102: Call OPENSSL_add_all_algorithms_noconf (#3112)Christian Heimes2017-09-051-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 Storchaka2017-07-101-6/+2
|
* bpo-29464: Rename METH_FASTCALL to METH_FASTCALL|METH_KEYWORDS and make (#1955)Serhiy Storchaka2017-07-031-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)Sylvain2017-06-151-2/+2
|
* bpo-9146: Raise a ValueError if OpenSSL fails to init a hash func. (#1777)Gregory P. Smith2017-05-241-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_FASTCALLVictor Stinner2017-01-171-3/+7
|
* Issue #27928: Add scrypt (password-based key derivation function) to hashlib ↵Christian Heimes2016-09-061-0/+129
| | | | module (requires OpenSSL 1.1.0).
* Issue #26470: Port ssl and hashlib module to OpenSSL 1.1.0.Christian Heimes2016-09-051-59/+106
|\
| * Issue #26470: Port ssl and hashlib module to OpenSSL 1.1.0.Christian Heimes2016-09-051-59/+106
| |
* | Issue #27895: Spelling fixes (Contributed by Ville Skyttä).Raymond Hettinger2016-08-301-1/+1
|/
* Issue #25523: Merge "a" to "an" fixes from 3.4 into 3.5Martin Panter2015-11-021-1/+1
|\
| * Issue #25523: Correct "a" article to "an" articleMartin Panter2015-11-021-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.4Benjamin Peterson2015-09-271-2/+2
|\ \ | |/
| * fix spacingBenjamin Peterson2015-09-271-2/+2
| |
* | Issue9951: update _hashopenssl and md5module to use _Py_strhex().Gregory P. Smith2015-04-251-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 Pitrou2015-01-031-12/+0
|/ | | | (now the hashlib module)
* exclude _hashopenssl.c:_setException() from LCOV coverageChristian Heimes2013-12-051-0/+2
|
* Remove unused code path from PBKDF2 that is causing a warning on Win64Christian Heimes2013-11-181-5/+1
|
* Fix compiler warnings on Windows 64 bit: add an explicit cast from Py_ssize_tVictor Stinner2013-11-151-1/+1
| | | | to int, password.len was checked for being smaller than INT_MAX.
* Issue #18582: fix memory leak in pbkdf2 codeChristian Heimes2013-11-061-0/+1
|
* Silence a compiler warning about an unused functionBrett Cannon2013-11-011-28/+28
|
* Issue #19420: Fix reference leak in module initalization code of _hashopenssl.cChristian Heimes2013-10-291-1/+1
|
* Issue #18742: Expose the internal hash type object for ABCs.Christian Heimes2013-10-221-3/+1
|
* Load SSL's error strings in hashlib.Christian Heimes2013-10-211-0/+1
| | | | Without ERR_load_crypto_strings() functions like ERR_lib_error_string() return NULL.
* Make PKCS5_PBKDF2_HMAC_fast() a static functionChristian Heimes2013-10-201-4/+5
|
* Issue #18582: HMAC_CTX_copy() is not available on OpenSSL < 1.0Christian Heimes2013-10-191-1/+2
|
* Issue #18582: provide a faster C implementation of pbkdf2_hmac that works ↵Christian Heimes2013-10-191-6/+94
| | | | with OpenSSL < 1.0
* Issue #18582: Add 'pbkdf2_hmac' to the hashlib module.Christian Heimes2013-10-121-0/+136
|
* In the _hashlib module, only initialize the static data for OpenSSL'sGregory P. Smith2013-02-021-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'sGregory P. Smith2013-02-021-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'sGregory P. Smith2013-02-021-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 Heimes2012-10-061-22/+0
|/ / | | | | | | http://hg.python.org/sandbox/cheimes
* | Issue #13088: Add shared Py_hexdigits constant to format a number into base 16Victor Stinner2011-10-141-5/+3
|/
* hashlib has two new constant attributes: algorithms_guaranteed andGregory P. Smith2010-09-061-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 C99Alexander Belopolsky2010-08-111-1/+1
| | | | | va_copy, but available on all python platforms. Untabified a few unrelated files.