record

package
v0.0.0-...-65bcca3 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContentType

type ContentType byte
const (
	Invalid           ContentType = 0
	ChangeChipherSpec ContentType = 20
	Alert             ContentType = 21
	HandShake         ContentType = 22
	ApplicationData   ContentType = 23
)

func DecodeContentType

func DecodeContentType(data []byte) ([]byte, ContentType)

func (ContentType) Encode

func (c ContentType) Encode() byte

type TLSCiphertext

type TLSCiphertext struct {
	EncryptedRecord []byte
	// contains filtered or unexported fields
}

func DecodeTLSCiphertext

func DecodeTLSCiphertext(data []byte) ([]byte, TLSCiphertext)

func NewTLSCiphertext

func NewTLSCiphertext(opaqueType ContentType, encryptedRecord []byte) TLSCiphertext

func (TLSCiphertext) AdditionalData

func (t TLSCiphertext) AdditionalData() []byte

additional_data = TLSCiphertext.opaque_type || TLSCiphertext.legacy_record_version || TLSCiphertext.length

func (TLSCiphertext) Encode

func (t TLSCiphertext) Encode() []byte

type TLSPlainText

type TLSPlainText struct {
	// The higher-level protocol used to process the enclosed fragment.
	ContentType ContentType
	// contains filtered or unexported fields
}

func DecodeTLSPlainText

func DecodeTLSPlainText(data []byte) ([]byte, TLSPlainText)

func NewTLSPlainText

func NewTLSPlainText(contentType ContentType, fragment []byte) TLSPlainText

func (TLSPlainText) Encode

func (t TLSPlainText) Encode() []byte

func (TLSPlainText) Fragment

func (t TLSPlainText) Fragment() []byte

Jump to

Keyboard shortcuts

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