Documentation ¶
Index ¶
- func LittleEndianU32(n int) []byte
- type Protocol
- func (p *Protocol) AD(data []byte)
- func (p *Protocol) Clone() *Protocol
- func (p *Protocol) KEY(key []byte)
- func (p *Protocol) KEYRand(n int) error
- func (p *Protocol) MetaAD(data []byte)
- func (p *Protocol) PRF(dst []byte, n int) []byte
- func (p *Protocol) PRFScalar() *ristretto255.Scalar
- func (p *Protocol) Ratchet()
- func (p *Protocol) RecvCLR(data []byte)
- func (p *Protocol) RecvCLRStream(dst io.Writer) io.Writer
- func (p *Protocol) RecvENC(dst, ciphertext []byte) []byte
- func (p *Protocol) RecvENCStream(dst io.Writer) io.Writer
- func (p *Protocol) RecvMAC(mac []byte) error
- func (p *Protocol) SendCLR(data []byte)
- func (p *Protocol) SendCLRStream(dst io.Writer) io.Writer
- func (p *Protocol) SendENC(dst, plaintext []byte) []byte
- func (p *Protocol) SendENCStream(dst io.Writer) io.Writer
- func (p *Protocol) SendMAC(dst []byte) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LittleEndianU32 ¶
LittleEndianU32 returns n as a 32-bit little endian bit string.
Types ¶
Click to show internal directories.
Click to hide internal directories.