kex

package
v0.0.0-...-ee7ae68 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2017 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KEX

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

func CreateFromTLV

func CreateFromTLV(kexTLV codec.TLV) (*KEX, error)

func KEXFullHello

func KEXFullHello(bare, reject *KEX) *KEX

func KEXHello

func KEXHello() *KEX

func KEXHelloAccept

func KEXHelloAccept(hello *KEX, macKey, encKey []byte) (*KEX, error)

func KEXHelloReject

func KEXHelloReject(hello *KEX, macKey []byte) *KEX

func (KEX) Children

func (kex KEX) Children() []codec.TLV

func (KEX) GetContainerType

func (k KEX) GetContainerType() uint16

Container functions

func (KEX) GetContainerValue

func (k KEX) GetContainerValue() interface{}

func (KEX) GetMessageType

func (k KEX) GetMessageType() uint16

func (KEX) GetPrivateKeyShare

func (k KEX) GetPrivateKeyShare() []byte

func (KEX) GetPublicKeyShare

func (k KEX) GetPublicKeyShare() []byte

KEX API

func (KEX) GetSessionID

func (k KEX) GetSessionID() string

func (KEX) Length

func (kex KEX) Length() uint16

func (KEX) String

func (kex KEX) String() string

func (KEX) Type

func (kex KEX) Type() uint16

func (KEX) TypeString

func (kex KEX) TypeString() string

func (KEX) Value

func (kex KEX) Value() []byte

type KEXExtension

type KEXExtension struct {
	ExtType  uint16
	ExtValue []byte
}

func CreateExtensionFromTLV

func CreateExtensionFromTLV(extTLV codec.TLV) (KEXExtension, error)

func (KEXExtension) Children

func (e KEXExtension) Children() []codec.TLV

func (KEXExtension) Length

func (e KEXExtension) Length() uint16

func (KEXExtension) String

func (e KEXExtension) String() string

func (KEXExtension) Type

func (e KEXExtension) Type() uint16

TLV functions

func (KEXExtension) TypeString

func (e KEXExtension) TypeString() string

func (KEXExtension) Value

func (e KEXExtension) Value() []byte

Jump to

Keyboard shortcuts

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