feat(native-rust): encrypt behavior#921
Open
lucasmcdonald3 wants to merge 26 commits into
Open
Conversation
added 7 commits
May 26, 2026 11:05
added 19 commits
May 27, 2026 10:09
…fixes from unreviewed
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.
Implements encrypt behavior per client-apis/encrypt.md.
Scope:
esdk/src/encrypt.rs— encrypt entry point, default-CMM wrapping, encryption-context validation, body and signature construction, output assembly.esdk/tests/test_encrypt_behavior.rs— top-level encrypt behavior.esdk/tests/test_encrypt_missing_annotations.rs— coverage for spec requirements not directly tied to a sub-routine.esdk/tests/test_construct_the_signature.rs— signature construction.esdk/tests/test_cmm_algorithm_suite_override.rs— algorithm-suite override behavior.esdk/tests/test_post_cmm_validation.rs— post-CMM-call material validation.esdk/tests/test_keyring_to_default_cmm.rs— keyring-to-default-CMM wrapping.esdk/tests/test_required_encryption_context.rs— required encryption context handling.The public input/output types (
EncryptInput,EncryptOutput) and streaming traits used by this entry point are reviewed in #919. Header, body, body-AAD, and footer serialization called from here are reviewed in their own PRs (#909, #918, #900, #898). Decrypt behavior is reviewed separately in a follow-up PR.Note: CI does not run on this PR. This branch is scoped for focused review and intentionally omits test helpers, scaffolding, and other supporting code. Full code — including helpers, test infrastructure, and working tests — lives on the
aws-crypto-rust/unreviewedbranch.If you want more context or to actually run the tests, see
aws-crypto-rust/unreviewed.Related spec: