Skip to content

Commit 1098495

Browse files
committed
librustls: prefer post quantum by default
Matches the change upstream in rustls 0.23.27
1 parent c5fccc3 commit 1098495

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,10 @@ platforms see the upstream documentation:
101101
#### Post-Quantum X25519MLKEM768 Key Exchange
102102

103103
Post-quantum-secure key exchange using [X25519MLKEM768][] is supported when using the `aws-lc-rs`
104-
cryptography provider. At this time default support places `X25519MLKEM768` at a lower negotiation priority.
104+
cryptography provider and offered by default at the highest priority.
105105

106-
By enabling the `prefer-post-quantum` feature flag the `X25519MLKEM768` key exchange will be used as the most
107-
preferred key exchange algorithm. We expect to add this feature to the crate's default features in a future
108-
release.
106+
By disabling the `prefer-post-quantum` feature flag the `X25519MLKEM768` key exchange will be
107+
offered at a lower negotiation priority.
109108

110109
[X25519MLKEM768]: https://datatracker.ietf.org/doc/draft-kwiatkowski-tls-ecdhe-mlkem
111110

librustls/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ links = "rustls_ffi"
1212
rust-version = "1.71"
1313

1414
[features]
15-
default = ["aws-lc-rs"]
15+
default = ["aws-lc-rs", "prefer-post-quantum"]
1616
# Enable this feature when building as Rust dependency. It inhibits the
1717
# default behavior of capturing the global logger, which only works when
1818
# built using the Makefile, which passes -C metadata=rustls-ffi to avoid

0 commit comments

Comments
 (0)