stammel

package
v1.1.11 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2021 License: LGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServerInformalPropertyDNSSEC   = ServerInformalProperties(1) << 0
	ServerInformalPropertyNoLog    = ServerInformalProperties(1) << 1
	ServerInformalPropertyNoFilter = ServerInformalProperties(1) << 2
)
View Source
const (
	StampProtoTypeDNSCrypt      = StampProtoType(0x01)
	StampProtoTypeDoH           = StampProtoType(0x02)
	StampProtoTypeTLS           = StampProtoType(0x03)
	StampProtoTypeDoTEx         = StampProtoType(0x45)
	StampProtoTypeDoHEx         = StampProtoType(0x69)
	StampProtoTypeProxy         = StampProtoType(0x96) // HTTPS Proxy; SOCKS 5 Proxy;
	StampProtoTypeDNSCryptRelay = StampProtoType(0x81)
	StampProtoTypeDNSCryptEx    = StampProtoType(0xA9)
)
View Source
const (
	SNIBlotUpTypeDefault = iota
	SNIBlotUpTypeOmit
	SNIBlotUpTypeIPAddr
	SNIBlotUpTypeMoniker
)
View Source
const DefaultPort = 443

Variables

This section is empty.

Functions

This section is empty.

Types

type HEXJSON

type HEXJSON []uint8

type PublicKey

type PublicKey struct {
	SignatureAlgorithm [2]byte
	KeyId              [8]byte
	PublicKey          [32]byte
}

func NewPublicKey

func NewPublicKey(publicKeyStr string) (PublicKey, error)

func (*PublicKey) Verify

func (publicKey *PublicKey) Verify(bin []byte, signature Signature) (bool, error)

type SNIBlotUpType

type SNIBlotUpType uint8

type ServerInformalProperties

type ServerInformalProperties uint64

type ServerStamp

type ServerStamp struct {
	ServerAddrStr string
	ProviderName  string
	Path          string
	Proxies       string        //All Ex - proxy
	Tags          string        //All Ex + proxy
	SNIShadow     string        //DoTEx DOHEx
	SNIBlotUp     SNIBlotUpType //DoTEx DOHEx Proxy
	Props         ServerInformalProperties
	Proto         StampProtoType
	ServerPk      HEXJSON
	Hashes        []HEXJSON
}

semicolon as delimiter of Tags, Proxies

func NewServerStampFromString

func NewServerStampFromString(stampStr string) (ServerStamp, error)

type Signature

type Signature struct {
	UntrustedComment   string
	SignatureAlgorithm [2]byte
	KeyId              [8]byte
	Signature          [64]byte
	TrustedComment     string
	GlobalSignature    [64]byte
}

func DecodeSignature

func DecodeSignature(in string) (Signature, error)

type StampProtoType

type StampProtoType uint8

func (*StampProtoType) String

func (stampProtoType *StampProtoType) String() string

Jump to

Keyboard shortcuts

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