Skip to content

[3.15] gh-155426: correctly reject non-bytes keys in hmac.digest (GH-155427) - #159743

Merged
picnixz merged 2 commits into
python:3.15from
miss-islington:backport-197d332-3.15
Oct 19, 2026
Merged

picnixz merged 2 commits into
python:3.15from
miss-islington:backport-197d332-3.15

Conversation

@miss-islington

@miss-islington miss-islington commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

This only affects keys of length smaller than the HMAC blocksize
since larger keys are hashed first.
(cherry picked from commit 197d332)

Co-authored-by: Bénédikt Tran 10796600+picnixz@users.noreply.github.com

…thonGH-155427)

This only affects keys of length smaller than the HMAC blocksize
since larger keys are hashed first.
(cherry picked from commit 197d332)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Comment thread Misc/NEWS.d/next/Library/2026-08-09-14-06-27.gh-issue-155426.zZVPMd.rst Outdated
@picnixz
picnixz enabled auto-merge (squash) October 19, 2026 19:41
@picnixz
picnixz merged commit e0685b7 into python:3.15 Oct 19, 2026
58 checks passed
@miss-islington
miss-islington deleted the backport-197d332-3.15 branch October 19, 2026 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants