Documentation
¶
Overview ¶
Package ciphersuite provides TLS ciphers as registered with IANA.
Index ¶
- func ForID(id cryptosuite.ID) cryptosuite.Suite
- func NewKeyMaterial(masterSecret, clientRandom, serverRandom []byte, role cryptosuite.EndpointRole) (cryptosuite.KeyMaterial, error)
- func NewLegacyRecord(contentType protocol.ContentType, version protocol.Version, epoch uint16, ...) (cryptosuite.Record, error)
- func NewTrafficSecret(secret []byte) (cryptosuite.TrafficSecret, error)
- func NewUnifiedRecord(epoch, sequenceNumber uint64, header []byte, protectedLen int) (cryptosuite.Record, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ForID ¶
func ForID(id cryptosuite.ID) cryptosuite.Suite
func NewKeyMaterial ¶
func NewKeyMaterial(masterSecret, clientRandom, serverRandom []byte, role cryptosuite.EndpointRole) (cryptosuite.KeyMaterial, error)
func NewLegacyRecord ¶
func NewLegacyRecord(contentType protocol.ContentType, version protocol.Version, epoch uint16, sequenceNumber uint64, connectionID []byte) (cryptosuite.Record, error)
func NewTrafficSecret ¶
func NewTrafficSecret(secret []byte) (cryptosuite.TrafficSecret, error)
func NewUnifiedRecord ¶
func NewUnifiedRecord(epoch, sequenceNumber uint64, header []byte, protectedLen int) (cryptosuite.Record, error)
NewUnifiedRecord snapshots the clear, exact unified header used as AAD.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.