Documentation ¶
Index ¶
Constants ¶
Variables ¶
View Source
var CipherSuites = []CipherSuite{}/* 346 elements not displayed */
Functions ¶
Types ¶
type CipherSuite ¶
type CipherSuite struct { Value []byte Name string Security string // contains filtered or unexported fields }
func FindByUint16 ¶
func FindByUint16(ciphers []CipherSuite, cipher uint16) *CipherSuite
FindByUint16 returns a pointer to a CipherSuite from ciphers based on cipher. If not found, returns nil.
func Get ¶
func Get(version uint16) []CipherSuite
Get returns the known ciphers for version, or nil if the version is invalid.
func Remove ¶
func Remove(ciphers []CipherSuite, cipher CipherSuite) []CipherSuite
func Unmarhsal ¶
func Unmarhsal(bytes []byte) (CipherSuite, error)
Unmarshal returns a known CipherSuite from CipherSuites based on bytes.
func (CipherSuite) Compare ¶
func (a CipherSuite) Compare(b CipherSuite) int
Compare returns returns -1 if a < b, 0 if a == b or 1 if a > b.
func (CipherSuite) String ¶
func (c CipherSuite) String() string
Click to show internal directories.
Click to hide internal directories.