MCPcopy Create free account
hub / github.com/XTLS/REALITY / defaultCurvePreferences

Function defaultCurvePreferences

defaults.go:19–24  ·  view source on GitHub ↗

Defaults are collected in this file to allow distributions to more easily patch them to apply local policies. var tlsmlkem = godebug.New("tlsmlkem") defaultCurvePreferences is the default set of supported key exchanges, as well as the preference order.

()

Source from the content-addressed store, hash-verified

17// defaultCurvePreferences is the default set of supported key exchanges, as
18// well as the preference order.
19func defaultCurvePreferences() []CurveID {
20 if false {
21 return []CurveID{X25519, CurveP256, CurveP384, CurveP521}
22 }
23 return []CurveID{X25519MLKEM768, X25519, CurveP256, CurveP384, CurveP521}
24}
25
26//var tlssha1 = godebug.New("tlssha1")
27

Callers 1

curvePreferencesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…