aead

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterCipher

func RegisterCipher(method string, keyLen int, cipher func(key []byte) (cipher.AEAD, error))

Types

type Cipher

type Cipher struct {
	Rand    io.Reader
	Key     []byte
	NewAEAD func(key []byte) (cipher.AEAD, error)
}

func (*Cipher) Decrypt

func (c *Cipher) Decrypt(dest, src []byte) (int, error)

func (*Cipher) Encrypt

func (c *Cipher) Encrypt(dest, src []byte) (int, error)

func (*Cipher) KeySize

func (c *Cipher) KeySize() int

func (*Cipher) SaltSize

func (c *Cipher) SaltSize() int

func (*Cipher) StreamConn

func (c *Cipher) StreamConn(conn net.Conn) net.Conn

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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