ORE v2 (1/n): compatibility vectors + bench baselines#78
Draft
coderdan wants to merge 2 commits into
Draft
Conversation
Pins serialised ciphertext bytes (left + full via deterministic test RNG) and comparison fixtures for the bit2 scheme, as the byte-identity contract for the v2 refactor. Adds the v2 architecture plan and the criterion baseline numbers on Apple M1 Max. Part of the ORE v2 program (docs/plans/2026-06-12-ore-v2-architecture.md, PR 1).
5b235fb to
6f54805
Compare
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.
First PR of the ORE v2 program — see
docs/plans/2026-06-12-ore-v2-architecture.md(included in this PR).What
bit2scheme (tests/compat_vectors.rs): exact serialised bytes for left and full ciphertexts under fixed keys, plus comparison fixtures over the pinned bytes. Full ciphertexts are made deterministic via a test RNG whosefrom_entropyis overridden to a fixed seed (the library is already generic over the RNG, so no library changes needed).docs/benchmarks/2026-06-13-baseline-main.md.Why
These vectors are the byte-identity contract for the upcoming core refactor (PR 2): the legacy scheme must keep producing identical bytes because stored ciphertexts in the wild depend on it. The baseline numbers are the reference for the performance PRs (3–5).
Notable baseline observation: per-block encrypt cost is ~47 µs against a sub-µs raw AES floor — the headroom the plan targets is real and large.