Movatterモバイル変換


[0]ホーム

URL:


tls13

packagestandard library
go1.25.2Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2025 License:BSD-3-ClauseImports:8Imported by:0

Details

Repository

cs.opensource.google/go/go

Links

Documentation

Overview

Package tls13 implements the TLS 1.3 Key Schedule as specified inRFC 8446,Section 7.1 and allowed by FIPS 140-3 IG 2.4.B Resolution 7.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

funcExpandLabel

func ExpandLabel[Hhash.Hash](hash func() H, secret []byte, labelstring, context []byte, lengthint) []byte

ExpandLabel implements HKDF-Expand-Label fromRFC 8446, Section 7.1.

funcTestingOnlyExporterSecret

func TestingOnlyExporterSecret(s *ExporterMasterSecret) []byte

Types

typeEarlySecret

type EarlySecret struct {// contains filtered or unexported fields}

funcNewEarlySecret

func NewEarlySecret[Hhash.Hash](h func() H, psk []byte) *EarlySecret

func (*EarlySecret)ClientEarlyTrafficSecret

func (s *EarlySecret) ClientEarlyTrafficSecret(transcripthash.Hash) []byte

ClientEarlyTrafficSecret derives the client_early_traffic_secret from theearly secret and the transcript up to the ClientHello.

func (*EarlySecret)EarlyExporterMasterSecret

func (s *EarlySecret) EarlyExporterMasterSecret(transcripthash.Hash) *ExporterMasterSecret

EarlyExporterMasterSecret derives the exporter_master_secret from the early secretand the transcript up to the ClientHello.

func (*EarlySecret)HandshakeSecret

func (s *EarlySecret) HandshakeSecret(sharedSecret []byte) *HandshakeSecret

func (*EarlySecret)ResumptionBinderKey

func (s *EarlySecret) ResumptionBinderKey() []byte

typeExporterMasterSecret

type ExporterMasterSecret struct {// contains filtered or unexported fields}

func (*ExporterMasterSecret)Exporter

func (s *ExporterMasterSecret) Exporter(labelstring, context []byte, lengthint) []byte

typeHandshakeSecret

type HandshakeSecret struct {// contains filtered or unexported fields}

func (*HandshakeSecret)ClientHandshakeTrafficSecret

func (s *HandshakeSecret) ClientHandshakeTrafficSecret(transcripthash.Hash) []byte

ClientHandshakeTrafficSecret derives the client_handshake_traffic_secret fromthe handshake secret and the transcript up to the ServerHello.

func (*HandshakeSecret)MasterSecret

func (s *HandshakeSecret) MasterSecret() *MasterSecret

func (*HandshakeSecret)ServerHandshakeTrafficSecret

func (s *HandshakeSecret) ServerHandshakeTrafficSecret(transcripthash.Hash) []byte

ServerHandshakeTrafficSecret derives the server_handshake_traffic_secret fromthe handshake secret and the transcript up to the ServerHello.

typeMasterSecret

type MasterSecret struct {// contains filtered or unexported fields}

func (*MasterSecret)ClientApplicationTrafficSecret

func (s *MasterSecret) ClientApplicationTrafficSecret(transcripthash.Hash) []byte

ClientApplicationTrafficSecret derives the client_application_traffic_secret_0from the master secret and the transcript up to the server Finished.

func (*MasterSecret)ExporterMasterSecret

func (s *MasterSecret) ExporterMasterSecret(transcripthash.Hash) *ExporterMasterSecret

ExporterMasterSecret derives the exporter_master_secret from the master secretand the transcript up to the server Finished.

func (*MasterSecret)ResumptionMasterSecret

func (s *MasterSecret) ResumptionMasterSecret(transcripthash.Hash) []byte

ResumptionMasterSecret derives the resumption_master_secret from the master secretand the transcript up to the client Finished.

func (*MasterSecret)ServerApplicationTrafficSecret

func (s *MasterSecret) ServerApplicationTrafficSecret(transcripthash.Hash) []byte

ServerApplicationTrafficSecret derives the server_application_traffic_secret_0from the master secret and the transcript up to the server Finished.

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp