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

Struct CipherSuite

cipher_suites.go:26–37  ·  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

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected