Repository navigation
feat(core): tablepro-keys crate for the end-to-end design - #4519
Merged
Merged
Conversation
# Conflicts: # .github/workflows/core.yml # core/AGENTS.md # core/ARCHITECTURE.md
# Conflicts: # core/ARCHITECTURE.md
datlechin
enabled auto-merge (squash)
November 25, 2026 18:37
datlechin
disabled auto-merge
November 25, 2026 18:43
# Conflicts: # core/ARCHITECTURE.md
datlechin
enabled auto-merge (squash)
November 25, 2026 18:45
datlechin
disabled auto-merge
November 25, 2026 18:47
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.
Summary
tablepro-keys(core/crates/keys), suitetp1from ADR 0056, with no workspace dependency and no I/O (no tokio, network or SQLite). aws-lc-rs for AES-256-GCM, HKDF-SHA256, Ed25519, X25519, SHA-256, HMAC and the RNG; HPKE from rustls'scrypto::aws_lc_rs::hpke.LPframing, labels, origins, UUIDs as 16 bytes and as upper-case text, scopes and purposes, versions 1 to 2^31-1, canonical base64url, Crockford Base32, EFF word digits, ISO/IEC 7816-4 padding.K_recand the blob; account certificates of each kind with the replace endorsement and IK change checks; device certificates; IK cancels;kid; version records withstartand their digest; wraps of every purpose and recipient with their signature and the recipient's checks; chained rings and the walk down them.destand its check at use, history entries, the trust plaintext and what it leaves out for size, the SAS commitment, words and session order, fingerprint words and QR text, the state MAC (0054), DPoP proofs (Ed25519, OKPjwk).KeysErrorcarries 0056's Errors table ascode(), pluskeys.randomfor a failed system RNG.zeroizeandsecrecytypes with redactedDebug.core/crates/keys/vectors/: one JSON file per area with every random input as an input of the case, every known-answer row, and a case for every row of 0056's negative table with its client and server codes. Rows a flow or the server decides are inflows.jsonwith their key objects from one world.scripts/update-vectors.shwrites them;--standardfetches RFC 9180's (revision5f503c5) and Wycheproof's (65ca494) vectors by SHA-256.deny.tomlandlinux/about.tomlallowCC-BY-3.0.core/crates/keys/fuzz, a workspace of its own.core.ymlchecks the crate and runs its tests on Windows x64, Arm64 and macOS.core/ARCHITECTURE.mdandcore/AGENTS.mdlist it.Test plan
cargo test -p tablepro-keys: unit and property tests, zeroize tests, RFC 9180 (every encryption of the base-mode entry), Wycheproof AES-GCM, X25519, Ed25519 and HKDF-SHA256, every committed vector case from its inputs, the vectors equal to what the generator writes, and every negative row of 0056 named by a case.cargo clippy -p tablepro-keys --all-targets -- -D warnings,cargo fmt --check,cargo shear,cargo deny check bans licenses sources.update-third-party-licenses.shandupdate-core-licenses.sh --check: no change.verify.sh --platform linux --jobs 4 test tablepro-keysin the Linux dev container.