session

package
v0.0.0-...-7444359 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ACounter = Counter{}
View Source
var HSCounter = Counter{}
View Source
var NewKeyPair = KeyPair{}
View Source
var NewServerHello = ServerHello{}
View Source
var NewSesh = Session{}
View Source
var Sekret = Secret{}

Functions

This section is empty.

Types

type Counter

type Counter struct {
	Sent uint8
	Recv uint8
}

type KeyPair

type KeyPair struct {
	PublicKey  []byte
	PrivateKey []byte
}

type Secret

type Secret struct {
	// Handshake Secrets
	SS  []byte
	HS  []byte
	CHS []byte
	SHS []byte

	// Handshake Keys & IV
	CHK  []byte
	CHIV []byte
	SHK  []byte
	SHIV []byte

	// Application Keys & IV
	CAK  []byte
	CAIV []byte
	SAK  []byte
	SAIV []byte

	// Finished
	CHF []byte
	SHF []byte
}

type ServerHello

type ServerHello struct {
	Random []byte
	Pubkey []byte
}

type Session

type Session struct {
	CHBytes  []byte
	SHBytes  []byte
	SHSBytes []byte
	CHFBytes []byte
	SEEBytes []byte
	SCBytes  []byte
	SCVBytes []byte
	SCCBytes []byte
}

Jump to

Keyboard shortcuts

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