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

Struct CipherSuite

cipher_suites.go:27–38  ·  view source on GitHub ↗

CipherSuite is a TLS cipher suite. Note that most functions in this package accept and expose cipher suite IDs instead of this type.

Source from the content-addressed store, hash-verified

25// CipherSuite is a TLS cipher suite. Note that most functions in this package
26// accept and expose cipher suite IDs instead of this type.
27type CipherSuite struct {
28 ID uint16
29 Name string
30
31 // Supported versions is the list of TLS protocol versions that can
32 // negotiate this cipher suite.
33 SupportedVersions []uint16
34
35 // Insecure is true if the cipher suite has known security issues
36 // due to its primitives, design, or implementation.
37 Insecure bool
38}
39
40var (
41 supportedUpToTLS12 = []uint16{VersionTLS10, VersionTLS11, VersionTLS12}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected