Documentation ¶ Index ¶ func RegisterCipher(method string, keyLen, ivLen int, ...) type Cipher func (c *Cipher) Decrypt(dest, src []byte) (int, error) func (c *Cipher) Encrypt(dest, src []byte) (int, error) func (c *Cipher) StreamConn(conn net.Conn) net.Conn 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 Source Files ¶ View all Source files cipher.go Directories ¶ Show internal Expand all Path Synopsis aes-x-cfb aes-x-ctr bf-cfb cast5-cfb chacha20 des-cfb rc4-md5-x salsa20 Click to show internal directories. Click to hide internal directories.