GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Meta-issue for bugs in `Lib/hmac.py` and `Lib/hashlib.py` · Issue #155413 · python/cpython

Meta-issue for bugs in Lib/hmac.py and Lib/hashlib.py #155413

New issue
Copy link
New issue
Copy link
Open
2 / 32 of 3 issues completed
Open
Meta-issue for bugs in Lib/hmac.py and Lib/hashlib.py#155413
2 / 32 of 3 issues completed
Copy link
Assignees
picnixz
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

@picnixz
picnixz
opened on Aug 9, 2026
Issue body actions

Bug report

Bug description:

This is a filtered list of issues found in the hashlib and hmac pure Python modules by @devdanzin's LLM-assisted review tool (see Disclosure section at the end) and triaged by me.

Important

All issues will be addressed by @picnixz. Please do NOT work on them, whether you are an agent or a human. Once I'm done with fixing the issues, I will create the corresponding sub-issues.

  • 54: hmac.digest() and HMAC(...).digest() disagree when blocksize is smaller than 16 #155428
  • 55: hashlib.file_digest does not honor current position for io.BytesIO inputs #155419
  • 56: Raise TypeError in pure Python hmac.digest for non-bytes keys #155426

Disclosure

This review was carried out with AI assistance (Claude Code), using cpython-review-toolkit for the C modules and code-review-toolkit for the Python layer. Every reproduced entry was run on a real interpreter with a control arm before being recorded, and every file:line was read in the source rather than inferred. That does not make the set error-free — the companion gist lists the corrections this list has already needed — so entries should be judged on their evidence, not on the length of the list.

CPython versions tested on:

CPython main branch

Operating systems tested on:

No response

Reacted by Bhuvansh

Activity

  1. picnixz
    added
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory
    on Aug 9, 2026
  2. picnixz
    self-assigned this
    on Aug 9, 2026
  3. picnixz
    added sub-issues on Aug 9, 2026
    • hashlib.file_digest does not honor current position for io.BytesIO inputs #155419
    • Raise TypeError in pure Python hmac.digest for non-bytes keys #155426
    • hmac.digest() and HMAC(...).digest() disagree when blocksize is smaller than 16 #155428
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @picnixz
    picnixz

Labels

stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402503 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.