ExpandLabelsource
func ExpandLabel[H hash.Hash](hash func() H, secret []byte, label string, context []byte, length int) []byteExpandLabel implements HKDF-Expand-Label from RFC 8446, Section 7.1.
Package tls13 implements the TLS 1.3 Key Schedule as specified in RFC 8446, Section 7.1 and allowed by FIPS 140-3 IG 2.4.B Resolution 7.
func ExpandLabel[H hash.Hash](hash func() H, secret []byte, label string, context []byte, length int) []byteExpandLabel implements HKDF-Expand-Label from RFC 8446, Section 7.1.
func TestingOnlyExporterSecret(s *ExporterMasterSecret) []bytetype EarlySecret struct {
// contains filtered or unexported fields
}func NewEarlySecret[H hash.Hash](h func() H, psk []byte) *EarlySecretfunc (s *EarlySecret) ClientEarlyTrafficSecret(transcript hash.Hash) []byteClientEarlyTrafficSecret derives the client_early_traffic_secret from the early secret and the transcript up to the ClientHello.
func (s *EarlySecret) EarlyExporterMasterSecret(transcript hash.Hash) *ExporterMasterSecretEarlyExporterMasterSecret derives the exporter_master_secret from the early secret and the transcript up to the ClientHello.
func (s *EarlySecret) HandshakeSecret(sharedSecret []byte) *HandshakeSecretfunc (s *EarlySecret) ResumptionBinderKey() []bytetype ExporterMasterSecret struct {
// contains filtered or unexported fields
}type HandshakeSecret struct {
// contains filtered or unexported fields
}func (s *HandshakeSecret) ClientHandshakeTrafficSecret(transcript hash.Hash) []byteClientHandshakeTrafficSecret derives the client_handshake_traffic_secret from the handshake secret and the transcript up to the ServerHello.
func (s *HandshakeSecret) MasterSecret() *MasterSecretfunc (s *HandshakeSecret) ServerHandshakeTrafficSecret(transcript hash.Hash) []byteServerHandshakeTrafficSecret derives the server_handshake_traffic_secret from the handshake secret and the transcript up to the ServerHello.
type MasterSecret struct {
// contains filtered or unexported fields
}func (s *MasterSecret) ClientApplicationTrafficSecret(transcript hash.Hash) []byteClientApplicationTrafficSecret derives the client_application_traffic_secret_0 from the master secret and the transcript up to the server Finished.
func (s *MasterSecret) ExporterMasterSecret(transcript hash.Hash) *ExporterMasterSecretExporterMasterSecret derives the exporter_master_secret from the master secret and the transcript up to the server Finished.
func (s *MasterSecret) ResumptionMasterSecret(transcript hash.Hash) []byteResumptionMasterSecret derives the resumption_master_secret from the master secret and the transcript up to the client Finished.
func (s *MasterSecret) ServerApplicationTrafficSecret(transcript hash.Hash) []byteServerApplicationTrafficSecret derives the server_application_traffic_secret_0 from the master secret and the transcript up to the server Finished.