ciphersuite

package
v4.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 6, 2026 License: MIT Imports: 24 Imported by: 0

Documentation

Overview

Package ciphersuite provides TLS ciphers as registered with IANA.

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL