Versions in this module Expand all Collapse all v1 v1.0.3 Feb 8, 2024 v1.0.2 Feb 8, 2024 Changes in this version + func NewECBDecrypter(block cipher.Block) cipher.BlockMode + func NewECBEncrypter(block cipher.Block) cipher.BlockMode + type Cipher interface + Decrypt func(src []byte) []byte + Encrypt func(src []byte) []byte + func NewAES(key []byte) (Cipher, error) + func NewAESWith(key []byte, mode CipherMode) (Cipher, error) + func NewBlockCipher(padding Padding, encrypt, decrypt cipher.BlockMode) Cipher + func NewDES(key []byte) (Cipher, error) + func NewDESWith(key []byte, mode CipherMode) (Cipher, error) + func NewStreamCipher(encrypt cipher.Stream, decrypt cipher.Stream) Cipher + type CipherMode interface + Cipher func(block cipher.Block, iv []byte) Cipher + SetPadding func(padding Padding) CipherMode + func NewCBCMode() CipherMode + func NewCFBMode() CipherMode + func NewCTRMode() CipherMode + func NewECBMode() CipherMode + func NewOFBMode() CipherMode + type Padding interface + Padding func(src []byte, blockSize int) []byte + UnPadding func(src []byte) []byte + func NewPKCS57Padding() Padding