rustls 0.23.22, opt-in prefer-post-quantum feature flag #520
+125
−8
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.
rustls 0.23.20 -> 0.23.22
Notably this brings in support for post-quantum-secure key exchange using X25519MLKEM768 with the
aws-lc-rs
crypto provider. Support is enabled by default, but at a low negotiation priority. A subsequent commit will expose the feature required to make it the most preferred KX alg.See the upstream release notes for more information:
add prefer-post-quantum feature flag
When explicitly activated (it is not a default) this feature flag activates the matching upstream
rustls/prefer-post-quantum
feature flag, making theaws-lc-rs
crypto provider preferX25519MLKEM768
.Since the default provider is augmented with
prefer-post-quantum
the existingclient.c
andserver.c
examples require no changes to benefit from the-DPREER_POST_QUANTUM=on
CMake option. CI is updated to test a preferred 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