stream

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterCipher

func RegisterCipher(method string, keyLen, ivLen int, encrypt, decrypt func(key, iv []byte) (cipher.Stream, error))

Types

type Cipher

type Cipher struct {
	Rand       io.Reader
	Key        []byte
	IvLen      int
	NewDecrypt func(key, iv []byte) (cipher.Stream, error)
	NewEncrypt func(key, iv []byte) (cipher.Stream, error)
}

func (*Cipher) Decrypt added in v0.2.0

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

func (*Cipher) Encrypt added in v0.2.0

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

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