protocol

package
v0.0.0-...-5d1c50d Latest Latest
Warning

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

Go to latest
Published: May 12, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LittleEndianU32

func LittleEndianU32(n int) []byte

LittleEndianU32 returns n as a 32-bit little endian bit string.

Types

type Protocol

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

func New

func New(name string) *Protocol

func (*Protocol) AD

func (p *Protocol) AD(data []byte)

func (*Protocol) Clone

func (p *Protocol) Clone() *Protocol

func (*Protocol) KEY

func (p *Protocol) KEY(key []byte)

func (*Protocol) KEYRand

func (p *Protocol) KEYRand(n int) error

func (*Protocol) MetaAD

func (p *Protocol) MetaAD(data []byte)

func (*Protocol) PRF

func (p *Protocol) PRF(dst []byte, n int) []byte

func (*Protocol) PRFScalar

func (p *Protocol) PRFScalar() *ristretto255.Scalar

func (*Protocol) Ratchet

func (p *Protocol) Ratchet()

func (*Protocol) RecvCLR

func (p *Protocol) RecvCLR(data []byte)

func (*Protocol) RecvCLRStream

func (p *Protocol) RecvCLRStream(dst io.Writer) io.Writer

func (*Protocol) RecvENC

func (p *Protocol) RecvENC(dst, ciphertext []byte) []byte

func (*Protocol) RecvENCStream

func (p *Protocol) RecvENCStream(dst io.Writer) io.Writer

func (*Protocol) RecvMAC

func (p *Protocol) RecvMAC(mac []byte) error

func (*Protocol) SendCLR

func (p *Protocol) SendCLR(data []byte)

func (*Protocol) SendCLRStream

func (p *Protocol) SendCLRStream(dst io.Writer) io.Writer

func (*Protocol) SendENC

func (p *Protocol) SendENC(dst, plaintext []byte) []byte

func (*Protocol) SendENCStream

func (p *Protocol) SendENCStream(dst io.Writer) io.Writer

func (*Protocol) SendMAC

func (p *Protocol) SendMAC(dst []byte) []byte

Jump to

Keyboard shortcuts

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