# Functions
CipherMethods 获取Cipher的所有支持方法.
Evp2Key evp to key.
GetCipher 根据方法获得 Cipher information.
HasCipherMethod 是否有method方法.
NewBlowfishCipher new blowfish cipher.
NewCast5Cipher new cast5 cipher.
NewChacha20 new chacha20 key size should 32, iv size should one of 12,24.
NewCipher new cipher method support: aes-128-cfb aes-192-cfb aes-256-cfb aes-128-ctr aes-192-ctr aes-256-ctr aes-128-ofb aes-192-ofb aes-256-ofb des-cfb des-ctr des-ofb 3des-cfb 3des-ctr 3des-ofb blowfish-cfb blowfish-ctr blowfish-ofb cast5-cfb cast5-ctr cast5-ofb twofish-128-cfb twofish-192-cfb twofish-256-cfb twofish-128-ctr twofish-192-ctr twofish-256-ctr twofish-128-ofb twofish-192-ofb twofish-256-ofb tea-cfb tea-ctr tea-ofb xtea-cfb xtea-ctr xtea-ofb rc4-md5 rc4-md5-6 chacha20 chacha20-ietf salsa20.
NewRc4Md5 new rc4-md5 key size should 16, iv size should one of 6,16.
NewSalsa20 new salsa20 key size should 32, iv size should one of 8.
NewStream new stream.
NewTwofishCipher new twofish cipher.
NewXteaCipher new xtea cipher.
PCKSPadding PKCS#5和PKCS#7 填充.
PCKSUnPadding PKCS#5和PKCS#7 解填充.
RandIV generate rand iv by rand.Reader.
Valid method password is valid or not.
WithGenerateIv with custom generate new iv function.
WithNewIv with custom generate new iv function Deprecated: use WithGenerateIv.
# Variables
error defined.
error defined.
error defined.
error defined.
error defined.
# Structs
BlockModeCipher block mode cipher support: cbc: cipher.NewCBCEncrypter, cipher.NewCBCDecrypter.
BlockStreamCipher block stream cipher support: cfb: cipher.NewCFBEncrypter, cipher.NewCFBDecrypter ctr: cipher.NewCTR, cipher.NewCTR ofb: cipher.NewOFB, cipher.NewOFB.
Cipher implement write and read cipher.Stream.
Stream stream newCipher.
# Interfaces
Apply apply.
BlockCrypt block crypt interface.
KeyIvLen key and iv length interface.
# Type aliases
IvSizeError iv size error.
KeySizeError key size error.
Option option.