noise

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2020 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrBadHandshakeState ...
	ErrBadHandshakeState = errors.New("bad handshake state")

	// ErrBadHandshakeRole ...
	ErrBadHandshakeRole = errors.New("bad handshake role")
)

Functions

This section is empty.

Types

type EncryptedKey

type EncryptedKey [encryptedKeySize]byte

EncryptedKey ...

type EncryptedNothing

type EncryptedNothing [encryptedNothingSize]byte

EncryptedNothing ...

type Handshake

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

Handshake ...

func (*Handshake) ConsumeRecipientResponse

func (hs *Handshake) ConsumeRecipientResponse(sSec *ppk.PrivateKey, rPubTmp *ppk.PublicKey, enc *EncryptedNothing) error

ConsumeRecipientResponse ...

func (*Handshake) Exchange

func (hs *Handshake) Exchange(cPub *ppk.PublicKey, cPubEnc *EncryptedKey) error

Exchange ...

func (*Handshake) Finalize

func (hs *Handshake) Finalize(send, recv *[ppk.KeySize]byte) error

Finalize ...

func (*Handshake) InitializeRecipient

func (hs *Handshake) InitializeRecipient(rSec *ppk.PrivateKey, cPubTmp *ppk.PublicKey) error

InitializeRecipient ...

func (*Handshake) InitializeSender

func (hs *Handshake) InitializeSender(rPub *ppk.PublicKey) error

InitializeSender ...

func (*Handshake) PrepareRecipientResponse

func (hs *Handshake) PrepareRecipientResponse(sPubTmp, sPub *ppk.PublicKey, enc *EncryptedNothing) error

PrepareRecipientResponse ...

func (*Handshake) PublicKey

func (hs *Handshake) PublicKey() ppk.PublicKey

PublicKey ...

Jump to

Keyboard shortcuts

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