Versions in this module Expand all Collapse all v1 v1.0.6 Jan 26, 2022 Changes in this version + func CheckCipherMethod(method string) error + type DecOrEnc int + const Decrypt + const Encrypt + type NoneStream struct + func (*NoneStream) XORKeyStream(dst, src []byte) + type StreamCipher struct + func NewStreamCipher(method, password string) (c *StreamCipher, err error) + func (c *StreamCipher) Copy() *StreamCipher + func (c *StreamCipher) Decrypt(dst, src []byte) + func (c *StreamCipher) DecryptInited() bool + func (c *StreamCipher) Encrypt(dst, src []byte) + func (c *StreamCipher) EncryptInited() bool + func (c *StreamCipher) IV() []byte + func (c *StreamCipher) InfoIVLen() int + func (c *StreamCipher) InfoKeyLen() int + func (c *StreamCipher) InitDecrypt(iv []byte) (err error) + func (c *StreamCipher) InitEncrypt() (iv []byte, err error) + func (c *StreamCipher) Key() []byte + func (c *StreamCipher) SetIV(iv []byte) + func (c *StreamCipher) SetKey(key []byte)