crypto

package
v1.12.9 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2021 License: OSL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handshakes

func Handshakes(pcap []byte) [][]byte

func NewTransport

func NewTransport(spec *tls.ClientHelloSpec) *http.Transport

Types

type Buffer

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

func NewBuffer

func NewBuffer(buf []byte) *Buffer

func (*Buffer) Next

func (b *Buffer) Next(n int) ([]byte, bool)

godocs.io/bytes#Buffer.Next

func (*Buffer) ReadBytes

func (b *Buffer) ReadBytes(delim byte) ([]byte, bool)

godocs.io/bytes#Buffer.ReadBytes

func (*Buffer) ReadUint16LengthPrefixed

func (b *Buffer) ReadUint16LengthPrefixed() ([]byte, []byte, bool)

godocs.io/golang.org/x/crypto/cryptobyte#String.ReadUint16LengthPrefixed

func (*Buffer) ReadUint32LengthPrefixed

func (b *Buffer) ReadUint32LengthPrefixed() ([]byte, []byte, bool)

github.com/golang/go/issues/49227

type ClientHello

type ClientHello struct {
	*tls.ClientHelloSpec
	Version uint16
}

func ParseHandshake

func ParseHandshake(data []byte) (*ClientHello, error)

func ParseJA3

func ParseJA3(str string) (*ClientHello, error)

func (ClientHello) FormatJA3

func (h ClientHello) FormatJA3() (string, error)

Jump to

Keyboard shortcuts

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