crypto: make caller-controlled boundaries explicit - #71
Merged
Conversation
Use validated borrowed BLAKE2 keys and fallible variable outputs, and move caller-nonce sealing, platform overrides, and secret formatting behind expert namespaces. Preserve allocation-free static dispatch and existing cryptographic kernels.
loadingalias
force-pushed
the
t9-misuse-resistant-api
branch
from
July 28, 2026 13:09
d76f6cb to
1b462ae
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.
Summary
Performance
The change adds no dependencies, allocations, dynamic dispatch, or new cryptographic indirection. Successful BLAKE2 hot-path code generation remains materially unchanged. The representative AEAD measurement changed by +0.10% with p = .76, so no performance change was detected.
Validation
just checkjust test-all— 1,673 tests passed, 1 skipped; 218 doctests passedjust test-feature-matrix— 38/38 profiles passedjust check-all --skip-feature-matrix rscryptojust pushgit diff --check