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

Function supportedCipherSuites

defaults.go:76–82  ·  view source on GitHub ↗

var tlsrsakex = godebug.New("tlsrsakex") var tls3des = godebug.New("tls3des")

(aesGCMPreferred bool)

Source from the content-addressed store, hash-verified

74//var tls3des = godebug.New("tls3des")
75
76func supportedCipherSuites(aesGCMPreferred bool) []uint16 {
77 if aesGCMPreferred {
78 return slices.Clone(cipherSuitesPreferenceOrder)
79 } else {
80 return slices.Clone(cipherSuitesPreferenceOrderNoAES)
81 }
82}
83
84func defaultCipherSuites(aesGCMPreferred bool) []uint16 {
85 cipherSuites := supportedCipherSuites(aesGCMPreferred)

Callers 2

cipherSuitesMethod · 0.85
defaultCipherSuitesFunction · 0.85

Calls 1

CloneMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…