kx

package
v0.1.19 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 4 Imported by: 7

Documentation

Index

Constants

View Source
const PublicKeyBytes = 32
View Source
const SecretKeyBytes = 32
View Source
const SeedBytes = 32
View Source
const SessionKeyBytes = 32

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyPair

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

func NewKeyPair

func NewKeyPair() (*KeyPair, error)

func (*KeyPair) ClientSessionKeys

func (pair *KeyPair) ClientSessionKeys(server_pk []byte) (rx []byte, tx []byte, err error)

func (*KeyPair) Public

func (pair *KeyPair) Public() []byte

func (*KeyPair) ServerSessionKeys

func (pair *KeyPair) ServerSessionKeys(client_pk []byte) (rx []byte, tx []byte, err error)

Jump to

Keyboard shortcuts

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