add opt-in post-quantum KX feature flag #520
Draft
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.
Note to reviewers: this is a draft while it takes a dep. override to use unreleased
rustls-post-quantum
, blocked on a release w/ rustls/rustls#2288 See rustls/rustls#2293 for more context.When
librustls
is built with a newpost-quantum
feature flag the defaultaws-lc-rs
cryptography provider will be augmented to offer the hybridX25519MLKEM768
key exchange by default in addition to the pre-existing classical KX algorithms usingrustls-post-quantum
.Similar support is added to the
rustls_default_fips_provider()
provider when bothfips
andpost-quantum
are enabled. When thepost-quantum
feature is available arustls_post_quantum_provider()
function is also provided to explicitly construct the PQ-enabled provider.Since the default provider is augmented the existing
client.c
andserver.c
examples benefit transparently when the-DPOST_QUANTUM=on
CMake option is provided. CI is updated to test a post-QC secure key exchange usingclient.c
andpq.cloudflareresearch.com
, checking that the output reports the correct KX on Windows/MacOS/Linux. This is done in the daily tests job since it relies on an external host. Here's an exemplar run from a manual invocation on this branch.Resolves #507