WIP: Erase SHA-2 state and compression schedules #2

Closed
erikinkinen wants to merge 12 commits from feature/posix-compat into main
Owner

Summary and rationale

Erase SHA-256 and SHA-512 chaining state, buffered input and length metadata on drop and before reset. Erase each compression schedule after use. Cloned hash states remain independent owners with their own cleanup.

Use the original EriX storage-erasure helpers and document the caller's remaining responsibility for input buffers, returned digests and prior copies. The branch also updates component documentation and skips duplicate same-repository pull-request jobs.

Tracking and scope

The linked component audit, implementation and consumer requirements remain part of this WIP review. The phase-wide guest and toolchain build requirements stay with the phase completion issue.

Architecture, authority and failure behavior

Cleanup applies to each hasher's owned state and temporary compression schedule. Caller input buffers and returned digests retain their existing ownership. Volatile erasure does not clear earlier compiler copies, registers, hardware remnants or storage after an abort. The erasure library adds no service, allocator or I/O authority.

The CI guard skips same-repository pull requests before any job steps run. Pushes, fork pull requests and manual runs retain their existing eligibility.

Validation evidence

Formatting, strict Clippy, warning-denied builds and documentation, unit tests, and applicable native/VM and consumer regressions remain required for the declared scope. Authored controls and older successful runs do not establish current full acceptance.

Review checklist

  • Dependencies use immutable revisions, and changes preserve runtime authority.
  • Signed commit uses a tagged title and an explanatory body.
  • Inline comments explain the guard; code files remain below 1,000 lines.
  • Shared template and testing manual document the same CI rule.
  • Shared governance and issue/PR template files remain unchanged.
  • Related issues and phase metadata track the implemented workflow scope.
  • No secrets, private reports or unsupported validation claims are published.

This review remains WIP until its declared scope and dependent requirements are complete.

## Summary and rationale Erase SHA-256 and SHA-512 chaining state, buffered input and length metadata on drop and before reset. Erase each compression schedule after use. Cloned hash states remain independent owners with their own cleanup. Use the original EriX storage-erasure helpers and document the caller's remaining responsibility for input buffers, returned digests and prior copies. The branch also updates component documentation and skips duplicate same-repository pull-request jobs. ## Tracking and scope - [meta #2](https://git.erikinkinen.fi/erix/meta/issues/2) - [lib-sha2 #1](https://git.erikinkinen.fi/erix/lib-sha2/issues/1) - [integration #65](https://git.erikinkinen.fi/erix/integration/issues/65) - [docs PR #4](https://git.erikinkinen.fi/erix/docs/pulls/4) - [e2fsd PR #3](https://git.erikinkinen.fi/erix/e2fsd/pulls/3) - [integration PR #12](https://git.erikinkinen.fi/erix/integration/pulls/12) - [lib-aes PR #2](https://git.erikinkinen.fi/erix/lib-aes/pulls/2) - [lib-constant-time PR #2](https://git.erikinkinen.fi/erix/lib-constant-time/pulls/2) - [lib-fs-crypto PR #2](https://git.erikinkinen.fi/erix/lib-fs-crypto/pulls/2) - [lib-ipc PR #2](https://git.erikinkinen.fi/erix/lib-ipc/pulls/2) - [lib-sha2 PR #2](https://git.erikinkinen.fi/erix/lib-sha2/pulls/2) The linked component audit, implementation and consumer requirements remain part of this WIP review. The phase-wide guest and toolchain build requirements stay with the phase completion issue. ## Architecture, authority and failure behavior Cleanup applies to each hasher's owned state and temporary compression schedule. Caller input buffers and returned digests retain their existing ownership. Volatile erasure does not clear earlier compiler copies, registers, hardware remnants or storage after an abort. The erasure library adds no service, allocator or I/O authority. The CI guard skips same-repository pull requests before any job steps run. Pushes, fork pull requests and manual runs retain their existing eligibility. ## Validation evidence Formatting, strict Clippy, warning-denied builds and documentation, unit tests, and applicable native/VM and consumer regressions remain required for the declared scope. Authored controls and older successful runs do not establish current full acceptance. ## Review checklist - [x] Dependencies use immutable revisions, and changes preserve runtime authority. - [x] Signed commit uses a tagged title and an explanatory body. - [x] Inline comments explain the guard; code files remain below 1,000 lines. - [x] Shared template and testing manual document the same CI rule. - [x] Shared governance and issue/PR template files remain unchanged. - [x] Related issues and phase metadata track the implemented workflow scope. - [x] No secrets, private reports or unsupported validation claims are published. This review remains WIP until its declared scope and dependent requirements are complete.
ci: Skip duplicate same-repository pull request jobs
Some checks failed
CI / test (push) Successful in 28s
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Failing after 1h1m8s
d5a82b7f64
Skip pull-request jobs when the head and base repository names match,
since push CI already covers these branches. Retain fork pull-request,
push and manual execution and existing release publication conditions.
Apply the guard before any job steps, including Markdown validation.

Test execution and CI observation are deferred at the user's request;
no execution result is claimed for this workflow-only change.
fix: Erase original hash state and message schedules
All checks were successful
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 8s
CI / test (push) Successful in 25s
0a9e601c25
Retire original chaining state, input buffers and lengths at drop and reset.
Erase expanded compression schedules through the shared primitive; preserve
independent clone ownership and caller input/output semantics.

Tests, builds, lint checks, generated documentation, VM/profiler execution and
CI observation remain deferred. Rustfmt was applied through stdin. No test
pass, warning-free build or measured performance improvement is claimed.
Full EriX guest generations and external Rust/LLVM guest rebuilding remain
required and unperformed.
ci: Adopt the signed original Git dependency helper
Some checks are pending
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / test (push) Successful in 18s
CI / markdown (push) Has started running
5b94698276
Select the verified immutable Integration helper that preserves actual
Git objects and denies registry dependencies without obsolete path
patches. Retain every duplicate same-repository PR guard. Where needed,
adopt the coherent signed ABI graph and preserve original authority and
validation budgets. Maintain canonical documentation formatting.

Tests and exact-head CI run in parallel with implementation. Earlier failed,
skipped or unrun checks remain distinct from actual passes. Keep the full
EriX guest build generations and external Rust/LLVM guest rebuild required;
no final all-repository CI success or guest completion is claimed.
ci: Adopt the signed original Git dependency helper
All checks were successful
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 7s
CI / test (push) Successful in 21s
48747aefe7
Select the verified immutable Integration helper that preserves actual
Git objects and denies registry dependencies without obsolete path
patches. Retain every duplicate same-repository PR guard. Where needed,
adopt the coherent signed ABI graph and preserve original authority and
validation budgets. Maintain canonical documentation formatting.

Tests and exact-head CI run in parallel with implementation. Earlier failed,
skipped or unrun checks remain distinct from actual passes. Keep the full
EriX guest build generations and external Rust/LLVM guest rebuild required;
no final all-repository CI success or guest completion is claimed.
erikinkinen changed title from WIP: Skip duplicate same-repository pull request jobs to WIP: Erase SHA-2 state and compression schedules 2026-10-12 16:01:35 +02:00
docs: Describe component responsibilities and remaining work clearly
All checks were successful
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 4s
CI / test (push) Successful in 16s
43644069f8
Replace generic repository descriptions with the component responsibilities
and caller obligations. Correct stale or duplicated wording while retaining
technical constraints, existing links and the documentation structure.
build: Align shared library dependency revisions
All checks were successful
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 4s
CI / test (push) Successful in 16s
5dc8525252
Select the current signed library revisions in dependency order.
Keep shared ABI types on one coherent Git graph without changing
capability rights or source identity.
ci: Select the reviewed native process custody helper
Some checks failed
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 5s
CI / test (push) Failing after 12s
4766021379
Select the coherent Integration source for dependency preparation and
native process ownership. This keeps helper inputs aligned with the
published runtime producer and refuses unsupported descriptor queries
before starting a child.
docs: Remove the superseded testing deferral
Some checks failed
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Failing after 1h0m49s
CI / test (push) Failing after 1h0m58s
721e72b0bc
Remove the outdated execution-waiver instruction from the roadmap so it reflects the active development workflow. Retain the component contract and open conformance, lifecycle and guest requirements.
ci: Adopt the repaired native signal owner
All checks were successful
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 9s
CI / test (push) Successful in 35s
379cacc4ea
Select the coherent Integration helper that admits observed default or
ignored reserved signals while preserving complete native action identity.
Keep the existing workflow commands and limits for Integration #118.
build: Track main dependencies through checked Cargo inputs
Some checks are pending
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / test (push) Has started running
CI / markdown (push) Has started running
53d592be84
Declare main for internal Git dependencies. Prepare offline Cargo inputs with
the selected Integration helper, then carry the generated workspace, environment
and target directory through each CI step.

Keep shared dependency and review policies aligned.

Refs: erix/integration#142
ci: Select the repaired Cargo gateway
Some checks are pending
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / test (push) Has started running
CI / markdown (push) Has started running
ecc26a9ce1
Use the shared gateway that selects installed Rust tools when a component
has no toolchain file. Keep tool selection, feature-branch resolution and
original source checks together in the pinned helper snapshot.

Refs: erix/integration#147
ci: Use the shared acquisition fix for packed Git transfers
All checks were successful
CI / markdown (push) Successful in 4s
CI / test (push) Successful in 27s
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
b985b977f9
Use the shared acquisition fix for packed Git transfers. The pinned helper
keeps unexpected object-store metadata outside the acquired source context.

Refs: erix/integration#150
erikinkinen added this to the Alpha 1 milestone 2026-10-30 09:34:52 +01:00
Author
Owner

This source is now split into feature PRs, starting at #4 and ending at #5. Each PR links its prerequisite. The complete stack preserves the runtime changes and dependency declarations; obsolete pin checkpoints and documented source-acquisition differences are separated from feature behavior.

Closing this aggregate without merging. The replacement PRs remain WIP for their remaining integration and review.

This source is now split into feature PRs, starting at #4 and ending at #5. Each PR links its prerequisite. The complete stack preserves the runtime changes and dependency declarations; obsolete pin checkpoints and documented source-acquisition differences are separated from feature behavior. Closing this aggregate without merging. The replacement PRs remain WIP for their remaining integration and review.
erikinkinen closed this pull request 2026-10-30 18:01:18 +01:00
All checks were successful
CI / markdown (push) Successful in 4s
CI / test (push) Successful in 27s
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped

Pull request closed

Sign in to join this conversation.
No description provided.