Commit Graph

12 Commits

Author SHA1 Message Date
Jiseok CHOI
be29462087 Fix _hashlib.compare_digest to reject non-ASCII strings (#7280)
Add non-ASCII string check to _hashlib.compare_digest, matching the
behavior of _operator._compare_digest. When both arguments are strings,
non-ASCII characters now correctly raise TypeError.

Also replace the non-constant-time == comparison with constant_time_eq
for proper timing-attack resistance, and return PyResult<bool> instead
of PyResult<PyObjectRef>.
2026-03-01 10:51:39 +09:00
Jeong, YunWon
10c393f063 _hashlib.HMAC 2026-02-15 22:09:29 +09:00
CPython Developers
2a611c992d Update hmac from v3.14.3 2026-02-15 21:04:32 +09:00
CPython Developers
1f290dccfe Update hashlib from v3.14.3 2026-02-14 21:40:04 +09:00
Copilot
cdd47b6a59 Upgrade hmac to Python 3.14.2 (#6863)
---------

Co-authored-by: moreal <26626194+moreal@users.noreply.github.com>
2026-01-31 18:40:34 +09:00
Terry Tianlin Luan
bd0aaf6f4f Updated the hmac + mailbox libraries + associated tests (#6608)
* Updated hmac + test library

* Updated mailbox library

* Added mailbox library test (v3.13.10)
2025-12-31 14:58:34 +09:00
Jeong, YunWon
4ce6827916 various fix to support subprocess/multiprocessing (#6567)
* hashlib.UnsupportedDigestmodError

* mmap readonly

* thread _refcount

* fix os.statvfs

* apply review
2025-12-30 00:24:07 +09:00
Kirill Podoprigora
7f02324dce Update Lib/test/test_hmac.py to 3.12 version (#5188) 2024-03-11 22:04:35 +09:00
Andrey Maltsev
514014f4fc add compare digest 2023-04-23 21:50:15 +09:00
Charles Hubain
df0963446f Implemented the block_size attribute for PyHasher, fixing the 2 failing hmac tests 2023-02-21 16:52:15 +09:00
Charles Hubain
b5f54f1624 Integrated hmac.py and test_hmac.py:
* fix typing issue on digest update function
* implemented copy for PyHasher object
* fixed two test_hashlib.py expected failure as a side-effect
2023-02-21 11:35:09 +09:00
Charles Hubain
33da5bf81f Updated Lib/hmac.py to cpython 3.11 version and included hmac test suite 2023-02-21 11:20:27 +09:00