mirror of
https://github.com/XTLS/Xray-docs-next.git
synced 2026-09-22 22:38:05 +03:00
TLS: Update curvePreferences
This commit is contained in:
@@ -267,9 +267,13 @@ CurveP384
|
||||
CurveP521
|
||||
X25519
|
||||
X25519MLKEM768
|
||||
SecP256r1MLKEM768*
|
||||
SecP384r1MLKEM1024*
|
||||
```
|
||||
|
||||
默认值截止至 go1.25 为包含上述五种曲线。调整顺序并不会使客户端或者服务器偏好使用哪种曲线,实际曲线将由密钥交换机制自行协商。
|
||||
\*: 未被 utls 支持
|
||||
|
||||
默认值截止至 go1.26 为包含上述全部曲线。调整顺序并不会使客户端或者服务器偏好使用哪种曲线,实际曲线将由密钥交换机制自行协商。
|
||||
|
||||
> `masterKeyLog` : string
|
||||
|
||||
|
||||
@@ -261,9 +261,13 @@ CurveP384
|
||||
CurveP521
|
||||
X25519
|
||||
X25519MLKEM768
|
||||
SecP256r1MLKEM768*
|
||||
SecP384r1MLKEM1024*
|
||||
```
|
||||
|
||||
The default value as of go1.25 includes the above five curves. Adjusting the order does not make the client or server prefer a particular curve; the actual curve will be negotiated by the key exchange mechanism itself.
|
||||
\*: Not supported by utls
|
||||
|
||||
The default value as of go1.26 includes all of the above curves. Adjusting the order does not make the client or server prefer a particular curve; the actual curve will be negotiated by the key exchange mechanism itself.
|
||||
|
||||
> `masterKeyLog` : string
|
||||
|
||||
|
||||
@@ -273,9 +273,13 @@ CurveP256
|
||||
CurveP384
|
||||
CurveP521
|
||||
X25519
|
||||
x25519Kyber768Draft00
|
||||
X25519MLKEM768
|
||||
SecP256r1MLKEM768*
|
||||
SecP384r1MLKEM1024*
|
||||
|
||||
Например, установка значения `"curvePreferences":["x25519Kyber768Draft00"]` позволяет включить экспериментальный алгоритм. Поскольку этот алгоритм находится на стадии черновика, данное поле может измениться в любой момент.
|
||||
\*: Не поддерживается utls
|
||||
|
||||
Значение по умолчанию начиная с go1.26 включает все вышеперечисленные кривые. Изменение порядка не заставляет клиента или сервер отдавать предпочтение конкретной кривой; фактическая кривая будет согласована самим механизмом обмена ключами.
|
||||
|
||||
> `masterKeyLog` : string
|
||||
|
||||
|
||||
Reference in New Issue
Block a user