crypto

package
v1.5.7 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2021 License: OSL-3.0 Imports: 8 Imported by: 0

README

Bytes

https://github.com/golang/net/blob/99673261/http2/hpack/hpack.go#L421-L504

TLS

First install:

https://github.com/emanuele-f/PCAPdroid

Start app, then change from HTTP Server to PCAP File. Then click start, if prompted to save, choose Downloads. Start Google Chrome and wait for a page to load. Then stop monitoring, and copy file to computer:

adb ls /sdcard/Download
adb pull /sdcard/Download/PCAPdroid_22_Oct_15_19_28.pcap

Documentation

Index

Constants

View Source
const Android = "769,49195-49196-52393-49199-49200-52392-158-159-49161-49162-49171-49172-51-57-156-157-47-53,65281-0-23-35-13-16-11-10,23,0"

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