Skip to content

Commit

Permalink
Don't support X25519MLKEM768 by default (yet)
Browse files Browse the repository at this point in the history
  • Loading branch information
bwesterb committed Sep 18, 2024
1 parent b7f47de commit b7eaa5b
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions boring/src/ssl/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2693,13 +2693,13 @@ impl SslRef {
if cfg!(feature = "kx-client-nist-required") {
"P256Kyber768Draft00:P-256:P-384:P-521"
} else {
"X25519Kyber768Draft00:X25519MLKEM768:X25519:P256Kyber768Draft00:P-256:P-384:P-521"
"X25519Kyber768Draft00:X25519:P256Kyber768Draft00:P-256:P-384:P-521"
}
} else if cfg!(feature = "kx-client-pq-supported") {
if cfg!(feature = "kx-client-nist-required") {
"P-256:P-384:P-521:P256Kyber768Draft00"
} else {
"X25519:P-256:P-384:P-521:X25519MLKEM768:X25519Kyber768Draft00:P256Kyber768Draft00"
"X25519:P-256:P-384:P-521:X25519Kyber768Draft00:P256Kyber768Draft00"
}
} else {
if cfg!(feature = "kx-client-nist-required") {
Expand All @@ -2715,10 +2715,8 @@ impl SslRef {

#[cfg(feature = "kx-safe-default")]
fn server_set_default_curves_list(&mut self) {
self.set_curves_list(
"X25519Kyber768Draft00:X25519MLKEM768:P256Kyber768Draft00:X25519:P-256:P-384",
)
.expect("invalid default server curves list");
self.set_curves_list("X25519Kyber768Draft00:P256Kyber768Draft00:X25519:P-256:P-384")
.expect("invalid default server curves list");
}

/// Returns the [`SslCurve`] used for this `SslRef`.
Expand Down

0 comments on commit b7eaa5b

Please sign in to comment.