Documentation ¶
Index ¶
- Constants
- func MD5(data []byte) []byte
- type Encryptor
- func (e *Encryptor) Decrypt(ciphertext []byte) (result []byte, err error)
- func (e *Encryptor) DecryptAll(ciphertext []byte) (result, iv []byte, err error)
- func (e *Encryptor) Encrypt(src []byte) (result []byte, err error)
- func (e *Encryptor) EncryptAll(src, iv []byte) (result []byte, err error)
- func (e *Encryptor) MustNewIV() []byte
- func (e *Encryptor) NewIV() (iv []byte, err error)
- type ICipher
- type SSCipher
Constants ¶
View Source
const ( OP_ENCRYPT = 0 OP_DECRYPT = 1 )
View Source
const AEAD_MAX_SEGMENT_LENGTH = 0x3FFF
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Encryptor ¶
type Encryptor struct { Key []byte KeyStr string Method string IVOut []byte IVIn []byte IVSent bool IVLen int IVBuf *bytes.Buffer EncodeCipher *SSCipher DecodeCipher *SSCipher }
func NewEncryptor ¶
func NewEncryptorWithIv ¶
func (*Encryptor) DecryptAll ¶
func (*Encryptor) EncryptAll ¶
Click to show internal directories.
Click to hide internal directories.