Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCrypto ¶
func GetCrypto(name string) (NewCryptoReaderFunc, NewCryptoWriterFunc, error)
Types ¶
type Aes128CfbCrypto ¶
type Aes128CfbCrypto struct {
// contains filtered or unexported fields
}
func (*Aes128CfbCrypto) Close ¶
func (c *Aes128CfbCrypto) Close() 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
Click to show internal directories.
Click to hide internal directories.