Skip to content

Remove the unused hmac_compat wrapper - #383

Open
Cherith1222 wants to merge 1 commit into
tlsfuzzer:masterfrom
Cherith1222:fix/316-remove-hmac-compat
Open

Cherith1222 wants to merge 1 commit into
tlsfuzzer:masterfrom
Cherith1222:fix/316-remove-hmac-compat

Conversation

@Cherith1222

Copy link
Copy Markdown

Fixes #316

hmac_compat is an identity function on both the Python 2 and Python 3 branches of _compat. generate_k was the only caller, and it passed the same byte strings through to hmac.new.

Cherith reviewed this diff and confirmed it with the person who helped draft it.

Drafted with Cursor. Model: Grok 4.7.

Both copies return their argument unchanged, so RFC 6979 already passes the same bytes to hmac.

AI-assisted (Cursor).
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.

remove hmac_compat

1 participant