Release HPKE draft support in v2.0.4 - #19
Merged
Merged
Conversation
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
crypt_guard,crypt_guard_proc, andcrypt_guard_examplesas v2.0.4draft-ietf-hpke-pq-05ML-KEM-768 and ML-KEM-1024 Base-mode profilesSecurity and compatibility
The new public API is revision-named at
crypt_guard::hpke_pq::draft_ietf_hpke_pq_05and is available only withhpke-pq-draft-05. It keepsencseparate from ciphertexts, accepts direct AAD, owns nonce sequencing in non-cloneable contexts, and collapses alteredenc, ciphertext, and AAD to authentication failure. The draft is explicitly documented as experimental and non-RFC-standardized.Existing
api::hpke::{seal, open}and crate-roothpke_seal/hpke_openremain CGv2/HFv1 compatibility APIs; no data is silently reinterpreted and there is no trial-decryption fallback.Validation
cargo fmt --checkcargo clippy --lib -- -D warningsbash tests/vectors/verify_provenance.shcargo test --test rfc9180_vectorscargo test --no-default-features --features hpke-pq-draft-05cargo testcargo test --workspace