crypto

package
v0.0.0-...-260714d Latest Latest
Warning

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

Go to latest
Published: May 27, 2020 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type Aes128CfbCrypto

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

func (*Aes128CfbCrypto) Close

func (c *Aes128CfbCrypto) Close() error

func (*Aes128CfbCrypto) Read

func (c *Aes128CfbCrypto) Read(buf []byte) (int, error)

func (*Aes128CfbCrypto) Write

func (c *Aes128CfbCrypto) Write(buf []byte) (int, error)

type Crypto

type Crypto interface {
	Read(buf []byte) (int, error)
	Write(buf []byte) (int, error)
	Close() error
}

func NewAes128CfbCryptoReader

func NewAes128CfbCryptoReader(key string, r io.ReadCloser) (Crypto, error)

func NewAes128CfbCryptoWriter

func NewAes128CfbCryptoWriter(key string, w io.WriteCloser) (Crypto, error)

func NewPlainCryptoReader

func NewPlainCryptoReader(key string, r io.ReadCloser) (Crypto, error)

func NewPlainCryptoWriter

func NewPlainCryptoWriter(key string, w io.WriteCloser) (Crypto, error)

type NewCryptoReaderFunc

type NewCryptoReaderFunc func(key string, r io.ReadCloser) (Crypto, error)

type NewCryptoWriterFunc

type NewCryptoWriterFunc func(key string, w io.WriteCloser) (Crypto, error)

type PlainCrypto

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

func (*PlainCrypto) Close

func (c *PlainCrypto) Close() error

func (*PlainCrypto) Read

func (c *PlainCrypto) Read(buf []byte) (int, error)

func (*PlainCrypto) Write

func (c *PlainCrypto) Write(buf []byte) (int, error)

Jump to

Keyboard shortcuts

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