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

Function defaultCipherSuites

defaults.go:84–91  ·  view source on GitHub ↗
(aesGCMPreferred bool)

Source from the content-addressed store, hash-verified

82}
83
84func defaultCipherSuites(aesGCMPreferred bool) []uint16 {
85 cipherSuites := supportedCipherSuites(aesGCMPreferred)
86 return slices.DeleteFunc(cipherSuites, func(c uint16) bool {
87 return disabledCipherSuites[c] ||
88 rsaKexCiphers[c] ||
89 tdesCiphers[c]
90 })
91}
92
93// defaultCipherSuitesTLS13 is also the preference order, since there are no
94// disabled by default TLS 1.3 cipher suites. The same AES vs ChaCha20 logic as

Callers 1

cipherSuitesMethod · 0.85

Calls 1

supportedCipherSuitesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…