Use fixed AES field transformations #7

Manually merged
erikinkinen merged 6 commits from feature/aes-field-transformations into feature/aes-key-erasure 2026-11-13 20:52:07 +01:00
Owner

Use a fixed field-inverse addition chain and fixed coefficient/tweak reductions for AES and XTS, preserving the existing outputs.

  • Replace repeated general field arithmetic with fixed transformations.
  • Check all byte products and substitutions against independent arithmetic and published vectors, and every XTS tweak basis bit.
  • Preserve schedule ownership and debug/optimized algorithm controls.
  • Run the selected 1 KiB XTS profiling workload with reversible transforms and a distinct full-width logical address.
  • Merge schedule retirement prerequisite #6.

The profiling byte count is actual transformed data; the logical address is tweak metadata. Host timings do not establish native performance or timing independence. This replaces the arithmetic portion of #5.

Use a fixed field-inverse addition chain and fixed coefficient/tweak reductions for AES and XTS, preserving the existing outputs. - [x] Replace repeated general field arithmetic with fixed transformations. - [x] Check all byte products and substitutions against independent arithmetic and published vectors, and every XTS tweak basis bit. - [x] Preserve schedule ownership and debug/optimized algorithm controls. - [x] Run the selected 1 KiB XTS profiling workload with reversible transforms and a distinct full-width logical address. - [ ] Merge schedule retirement prerequisite [#6](https://git.erikinkinen.fi/erix/lib-aes/pulls/6). The profiling byte count is actual transformed data; the logical address is tweak metadata. Host timings do not establish native performance or timing independence. This replaces the arithmetic portion of #5.
erikinkinen added this to the Alpha 1 milestone 2026-10-30 14:37:52 +01:00
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.
erikinkinen changed title from WIP: Use fixed AES field transformations to Use fixed AES field transformations 2026-11-13 03:15:08 +01:00
Author
Owner

Ready for review. Fixed transformations preserve the independent arithmetic controls, and the original schedule-retirement prerequisite is integrated into this branch. The selected profiling example keeps transformed bytes separate from logical-address metadata.

Ready for review. Fixed transformations preserve the independent arithmetic controls, and the original schedule-retirement prerequisite is integrated into this branch. The selected profiling example keeps transformed bytes separate from logical-address metadata.
Author
Owner

Independent ciphertext checks exposed a pre-existing CBC-CS3 format defect that round-trip tests missed. It is tracked in #10 and corrected by #11, including aligned inputs. The field-transformation and key-owner changes here retain their original scope; use the corrective dependency before adopting standard CTS ciphertext.

Independent ciphertext checks exposed a pre-existing CBC-CS3 format defect that round-trip tests missed. It is tracked in #10 and corrected by #11, including aligned inputs. The field-transformation and key-owner changes here retain their original scope; use the corrective dependency before adopting standard CTS ciphertext.
erikinkinen manually merged commit ddca532c56 into feature/aes-key-erasure 2026-11-13 20:52:07 +01:00
Sign in to join this conversation.
No description provided.