Skip to content

Spec: restore AES-GCM open_to's contracts - #4363

Merged
reaperhulk merged 1 commit into
mainfrom
claude/gcm-open-to-spec
Nov 6, 2026
Merged

reaperhulk merged 1 commit into
mainfrom
claude/gcm-open-to-spec

Conversation

@reaperhulk

Copy link
Copy Markdown
Member

Trust change (Spec/ only). This restores, unchanged, the AES-GCM out-of-place decryption definitions that pyca/verified-garbage#4337 removed as unused:

  • Spec/Gcm/OutOfPlace.lean: openToSig, openToPre, openToPost, openToLeak, openToContract, openToApi, their _precomputed forms, and the module docstring's paragraph on vg_aes_gcm_open_to.
  • Spec/Gcm/Prepared.lean: openToPreparedSig, openToPreparedPre, openToPreparedContract, openToPreparedApi.
  • Spec/Gcm/Prepared16.lean: openToPrepared16Pre, openToPrepared16Contract, openToPrepared16Api.

They were unused on main only because the implementation proven against them, pyca/verified-garbage#4307, had not merged yet. They were reviewed in pyca/verified-garbage#4292.

This is the reverse of #4337's hunks in those three files. OutOfPlace.lean is byte for byte what it was before #4337. #4337's other removals, including the store_powers APIs in Powers8.lean, stay removed. No other file changes, and no registration emits these yet: #4307 will.


Generated by Claude Code

Restore, unchanged, the open_to definitions #4337 removed as unused:
openToSig, openToPre, openToPost, openToLeak, openToContract, openToApi
and the precomputed, prepared and prepared16 forms. The open_to
implementation (#4307) is proven against them and was not yet merged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015ajQWvqXkQxFyWZxghqxBG
@reaperhulk
reaperhulk enabled auto-merge November 6, 2026 19:56
@reaperhulk
reaperhulk added this pull request to the merge queue Nov 6, 2026
Merged via the queue into main with commit 03d1fd8 Nov 6, 2026
15 checks passed
@reaperhulk
reaperhulk deleted the claude/gcm-open-to-spec branch November 6, 2026 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants