package
9.0.0-alpha+incompatible
Repository: https://github.com/pingcap/tidb.git
Documentation: pkg.go.dev

# Functions

AESDecryptWithCBC decrypts data using AES with CBC mode.
AESDecryptWithCFB decrypts data using AES with CFB mode.
AESDecryptWithCTR decrypts data using AES with CTR mode.
AESDecryptWithECB decrypts data using AES with ECB mode.
AESDecryptWithOFB decrypts data using AES with OFB mode.
AESEncryptWithCBC encrypts data using AES with CBC mode.
AESEncryptWithCFB encrypts data using AES with CFB mode.
AESEncryptWithCTR encrypts data using AES with CTR mode.
AESEncryptWithECB encrypts data using AES with ECB mode.
AESEncryptWithOFB encrypts data using AES with OFB mode.
DeriveKeyMySQL derives the encryption key from a password in MySQL algorithm.
NewCtrCipher return a CtrCipher using the default encrypt block size.
NewCtrCipherWithBlockSize return a CtrCipher with the encrypt block size.
NewReader returns a new Reader which can read from the input source after decrypting.
NewWriter returns a new Writer which encrypt data using AES before writing to the underlying object.
PKCS7Pad pads data using PKCS7.
PKCS7Unpad unpads data using PKCS7.
SQLDecode Function to handle the decode() function.
SQLEncode Function to handle the encode() function.

# Structs

CtrCipher encrypting data using AES in counter mode.
Reader implements an io.ReadAt, reading from the input source after decrypting.
Writer implements an io.WriteCloser, it encrypt data using AES before writing to the underlying object.