aead: implement nonce-based AES-SIV-CMAC-256 - #93
Merged
Conversation
loadingalias
force-pushed
the
aead/aes-siv-cmac-256
branch
from
August 26, 2026 06:58
bad851f to
42a9748
Compare
loadingalias
force-pushed
the
aead/aes-siv-cmac-256
branch
from
August 26, 2026 07:15
42a9748 to
f4e2481
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
Security and performance boundaries
The implementation follows the RFC key split, S2V component ordering, synthetic-IV counter-bit clearing, full 128-bit counter increment, and
synthetic_iv || ciphertextlayout. Repeated complete key/nonce/AAD/plaintext tuples reveal equality, so nonce uniqueness remains the normal caller contract even though authenticity survives reuse.Context construction precomputes the AES schedules and CMAC subkeys. CMAC selects the AES backend once per block stream, and CTR encrypts independent counter blocks in native batches. In-place seal/open operations allocate no memory; alloc-enabled RISC-V context construction retains the existing boxed fixslice schedule.
Focused validation
just ct-validate --target aarch64-apple-darwin --manifest-onlyjust check-zeroize-evidenceenv SSH_AUTH_SOCK=... just check-actionsscripts/ci/nostd-wasm-suite.sh wasm32-wasip1 shallow