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
Click to show internal directories.
Click to hide internal directories.