Argon2 on x86-64: compose the complete block update proof - #487
Closed
reaperhulk wants to merge 1 commit into
Closed
reaperhulk wants to merge 1 commit into
reaperhulk wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Compose destination saving, scratch/output setup, the verified compression call, argument restoration and first/later-pass writing into a complete block update. Derive the intermediate operation invariants from the caller's readable frame fields, writable allocations and region separation.
Prove that saving the destination preserves both input blocks and the old matrix cell; that frame pass/scratch fields survive; and that the complete sequence writes G on pass zero or G XOR the old destination on later passes. Include the exact memory frame, enclosing-loop register and permission preservation, full MXCSR preservation, and trace equivalence when the allowed argument addresses and public frame words agree. Split the existing code into
setupfollowed byoperationto match the proof composition; instruction order is unchanged.Builds on #484. This is still an inline filling layer; independent address generation, the pass loops, finalization and whole-derive registration follow. No specification, TCB or public API changes, and no assembly emitted yet.
Validation: targeted Lean builds, standard-axiom and compiler-override audits, specification-origin audit, Lean import and proof-speed checks, and
git diff --check. Full checks run in CI.