Erase original AES key schedules at retirement #6

Manually merged
erikinkinen merged 15 commits from feature/aes-key-erasure into main 2026-11-14 20:43:18 +01:00
Owner

Erase the private expanded AES schedules and guarded XTS tweak storage when their original owners retire. Input keys and output buffers remain caller-owned.

  • Retain one non-cloneable owner for the expanded schedules.
  • Retire both XTS schedules and guarded tweak storage.
  • Preserve cipher vectors, modes and ownership controls in debug and optimized builds.
  • Merge the repository prerequisite #4.

The storage primitive is supplied by merged lib-constant-time#4. This replaces the schedule-retirement portion of #5.

This branch also includes the completed downstream features from #7, #11.

This branch also includes the completed downstream features from #7, #8, #11.

Erase the private expanded AES schedules and guarded XTS tweak storage when their original owners retire. Input keys and output buffers remain caller-owned. - [x] Retain one non-cloneable owner for the expanded schedules. - [x] Retire both XTS schedules and guarded tweak storage. - [x] Preserve cipher vectors, modes and ownership controls in debug and optimized builds. - [ ] Merge the repository prerequisite [#4](https://git.erikinkinen.fi/erix/lib-aes/pulls/4). The storage primitive is supplied by merged [lib-constant-time#4](https://git.erikinkinen.fi/erix/lib-constant-time/pulls/4). This replaces the schedule-retirement portion of #5. This branch also includes the completed downstream features from #7, #11. This branch also includes the completed downstream features from #7, #8, #11.
erikinkinen added this to the Alpha 1 milestone 2026-10-30 14:37:32 +01:00
feat: Erase original AES key schedules at retirement
Some checks failed
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 6s
CI / test (push) Failing after 55s
ef8d23ddb6
Keep expanded AES schedules as private single owners erased on drop.
Guard original XTS tweak storage and remove schedule cloning. Preserve
existing transformations and document the independent algorithm audit scope.
ci: Select the public erasure provider APIs
Some checks failed
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / test (push) Has been cancelled
CI / markdown (push) Has been cancelled
114897bf09
Select the exact public ConstantTime and crypto sources required by this feature. Preserve its implementation and every original Cargo gate, and bind the actual retained consumer to the tracked source graph.
ci: Use shared development dependency profiles
Some checks failed
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 6s
CI / test (push) Failing after 35s
8b53b709a0
Keep authored manifests on main and select coordinated providers through Integration. Resolve branches once per run, retain the frozen snapshot and helper identity as artifacts, and use shared source checks instead of copied tests and guides.
test: Cover cryptographic ownership in optimized builds
All checks were successful
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 2s
CI / test (push) Successful in 35s
1c685f2e7f
Exercise the original ownership boundaries and algorithm controls in debug and release builds using one captured dependency graph. Document the scope of owned storage erasure and keep caller inputs and outputs outside that guarantee.
erikinkinen changed title from WIP: Erase original AES key schedules at retirement to Erase original AES key schedules at retirement 2026-11-13 03:14:00 +01:00
Author
Owner

Ready for review. The library ownership contract and its controls are complete; the remaining linked prerequisites are merge gates.

Ready for review. The library ownership contract and its controls are complete; the remaining linked prerequisites are merge gates.
perf: Use fixed AES field transformations
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 52s
811a253624
Compute inverse substitution through the inverse affine map and a fixed field-inverse addition chain. Use fixed coefficient and tweak reductions instead of repeated general multiplication, preserving AES and XTS outputs without data-dependent iteration.
ci: Select the public erasure provider APIs
Some checks failed
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / test (push) Has been cancelled
CI / markdown (push) Has been cancelled
d28de98e2e
Select the exact public ConstantTime and crypto sources required by this feature. Preserve its implementation and every original Cargo gate, and bind the actual retained consumer to the tracked source graph.
ci: Use shared development dependency profiles
Some checks failed
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 9s
CI / test (push) Failing after 33s
6d7f9f4683
Keep authored manifests on main and select coordinated providers through Integration. Resolve branches once per run, retain the frozen snapshot and helper identity as artifacts, and use shared source checks instead of copied tests and guides.
test: Cover cryptographic ownership in optimized builds
All checks were successful
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 3s
CI / test (push) Successful in 38s
0f86fe0556
Exercise the original ownership boundaries and algorithm controls in debug and release builds using one captured dependency graph. Document the scope of owned storage erasure and keep caller inputs and outputs outside that guarantee.
perf: Exercise the selected XTS profiling workload
All checks were successful
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 2s
CI / test (push) Successful in 36s
12387a23a4
Run the retained release example through the selected Cargo workspace, checking reversible transforms and distinct full-width logical addresses before publishing phase timings.
fix: Retain AES ownership controls through field optimization
All checks were successful
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 2s
CI / test (push) Successful in 36s
52c81b0760
Integrate the schedule-retirement prerequisite while retaining the fixed arithmetic description, debug and release controls, and selected XTS profiling workload.
feat: Merge fixed AES field transformations
Some checks failed
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / test (push) Has been cancelled
CI / markdown (push) Has been cancelled
ddca532c56
Use fixed AES field transformations. Integrate the reviewed feature into feature/aes-key-erasure while the upstream work retains its own completion requirements.

#7
fix: Implement the complete CBC-CS3 ciphertext format
All checks were successful
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 2s
CI / test (push) Successful in 37s
1b89fec4b7
Chain a zero-padded final plaintext fragment with the encrypted preceding block and reconstruct that block before decryption. Exchange the final two complete ciphertext blocks for aligned inputs, retaining ordinary CBC only for a single block and the separate CBC API. Independent fixed answers cover every byte length from sixteen through sixty-four in both directions; previous nonstandard ciphertext is not silently accepted.
feat: Merge correct CBC-CS3 ciphertext stealing
All checks were successful
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / test (push) Successful in 51s
CI / markdown (push) Successful in 3s
b45cfde921
Correct CBC-CS3 ciphertext stealing. Integrate the reviewed feature into feature/aes-key-erasure while the upstream work retains its own completion requirements.

#11
Author
Owner

Merged the approved downstream work from #7, #11. The upstream PR retains its own remaining scope and completion requirements.

Merged the approved downstream work from #7, #11. The upstream PR retains its own remaining scope and completion requirements.
ci: Declare main and feature provider policy
All checks were successful
CI / markdown (push) Successful in 2s
CI / test (push) Successful in 46s
41e28fcd40
Pass the provider policy explicitly. Main and tag builds must use main providers; feature builds keep their declared companions. Older helpers that lack this contract must fail before preparing sources.
feat: Merge use shared development dependency selection
All checks were successful
CI / test (pull_request) Has been skipped
CI / markdown (pull_request) Has been skipped
CI / markdown (push) Successful in 3s
CI / test (push) Successful in 49s
c30d77e2fe
Integrate the reviewed prepared history into feature/aes-key-erasure. The feature tree and
original source branch remain unchanged. Upstream work retains its own
completion requirements.

#8
Author
Owner

Merged the approved downstream work from #7, #8, #11. The upstream PR retains its own remaining scope and completion requirements.

Merged the approved downstream work from #7, #8, #11. The upstream PR retains its own remaining scope and completion requirements.
erikinkinen changed target branch from feature/ci-source-acquisition to main 2026-11-14 20:43:17 +01:00
erikinkinen manually merged commit 134db24c54 into main 2026-11-14 20:43:18 +01:00
Sign in to join this conversation.
No description provided.