# Functions
NewAES Create default AES cipher, use ECB working mode, pkcs57 padding, algorithm secret key length 128 192 256 bits, use secret key as initial vector.
NewAESWith According to the specified working mode, create AES cipher, the length of the algorithm secret key is 128 192 256 bits, and the secret key is used as the initial vector.
NewBlockCipher new block encryption.
NewCBCMode new cbc mode.
NewCFBMode new cfb mode.
NewCTRMode new ctr mode.
NewDES Create default DES cipher, use ECB working mode, pkcs57 padding, algorithm secret key length 64 bits, use secret key as initial vector.
NewDESWith According to the specified working mode, create DES cipher, the length of the algorithm secret key is 64 bits, and use the secret key as the initial vector.
NewECBDecrypt ecb decrypt.
NewECBEncrypt ecb encrypt.
NewECBMode new ecb mode.
NewOFBMode new ofb mode.
NewPKCS57Padding new pkcs57 padding.
NewStreamCipher new stream encryption.
# Interfaces
Cipher provides a unified interface to encrypt/decrypt data.
CipherMode provides a uniform interface to set the filling method for different operating modes.
Padding provides a unified interface to populate/restore data for various population methods.