Versions in this module Expand all Collapse all v1 v1.0.1 May 8, 2026 Changes in this version + var TypeMode = NewTypeSet[Mode, string](maxMode) + var TypeMultiple = NewTypeSet[Multiple, string](maxMultiple) + var TypePadding = NewTypeSet[Padding, string](maxPadding) + var UseEncrypt = NewDataSet[Multiple, IEncrypt]() + var UseMode = NewDataSet[Mode, IMode]() + var UsePadding = NewDataSet[Padding, IPadding]() + func BlockDecrypt(block cipher.Block, data []byte, opt IOption) ([]byte, error) + func BlockEncrypt(block cipher.Block, data []byte, opt IOption) ([]byte, error) + type Config struct + func NewConfig(c Cryptobin) Config + func (this Config) Config() *config.Config + func (this Config) Iv() []byte + func (this Config) Key() []byte + func (this Config) Mode() Mode + func (this Config) Multiple() Multiple + func (this Config) Padding() Padding + type Cryptobin struct + Errors []error + func FromBase64String(data string) Cryptobin + func FromBytes(data []byte) Cryptobin + func FromHexString(data string) Cryptobin + func FromString(data string) Cryptobin + func New() Cryptobin + func NewCryptobin() Cryptobin + func (this Cryptobin) Aes() Cryptobin + func (this Cryptobin) AppendError(err ...error) Cryptobin + func (this Cryptobin) AppendTriggerError(err ...error) Cryptobin + func (this Cryptobin) Aria() Cryptobin + func (this Cryptobin) BC() Cryptobin + func (this Cryptobin) Blowfish(salt ...string) Cryptobin + func (this Cryptobin) CBC() Cryptobin + func (this Cryptobin) CCM(additional ...[]byte) Cryptobin + func (this Cryptobin) CCMWithNonceAndTagSize(nonceSize, tagSize int, additional ...[]byte) Cryptobin + func (this Cryptobin) CCMWithNonceSize(nonceSize int, additional ...[]byte) Cryptobin + func (this Cryptobin) CCMWithTagSize(tagSize int, additional ...[]byte) Cryptobin + func (this Cryptobin) CFB() Cryptobin + func (this Cryptobin) CFB1() Cryptobin + func (this Cryptobin) CFB128() Cryptobin + func (this Cryptobin) CFB8() Cryptobin + func (this Cryptobin) CTR() Cryptobin + func (this Cryptobin) Camellia() Cryptobin + func (this Cryptobin) Cast5() Cryptobin + func (this Cryptobin) Chacha20(counter ...uint32) Cryptobin + func (this Cryptobin) Chacha20poly1305(additional ...[]byte) Cryptobin + func (this Cryptobin) Chacha20poly1305X(additional ...[]byte) Cryptobin + func (this Cryptobin) Decrypt() Cryptobin + func (this Cryptobin) Des() Cryptobin + func (this Cryptobin) ECB() Cryptobin + func (this Cryptobin) Encrypt() Cryptobin + func (this Cryptobin) Error() error + func (this Cryptobin) FromBase64String(data string) Cryptobin + func (this Cryptobin) FromBytes(data []byte) Cryptobin + func (this Cryptobin) FromHexString(data string) Cryptobin + func (this Cryptobin) FromString(data string) Cryptobin + func (this Cryptobin) FuncDecrypt(fn func(Cryptobin) Cryptobin) Cryptobin + func (this Cryptobin) FuncEncrypt(fn func(Cryptobin) Cryptobin) Cryptobin + func (this Cryptobin) GCM(additional ...[]byte) Cryptobin + func (this Cryptobin) GCMWithNonceSize(nonceSize int, additional ...[]byte) Cryptobin + func (this Cryptobin) GCMWithTagSize(tagSize int, additional ...[]byte) Cryptobin + func (this Cryptobin) GetConfig() *config.Config + func (this Cryptobin) GetData() []byte + func (this Cryptobin) GetErrors() []error + func (this Cryptobin) GetIv() []byte + func (this Cryptobin) GetKey() []byte + func (this Cryptobin) GetMode() Mode + func (this Cryptobin) GetMultiple() Multiple + func (this Cryptobin) GetOneConfig(key string) any + func (this Cryptobin) GetPadding() Padding + func (this Cryptobin) GetParsedData() []byte + func (this Cryptobin) Gost(sbox any) Cryptobin + func (this Cryptobin) HCTR(tweak, hkey []byte) Cryptobin + func (this Cryptobin) Hight() Cryptobin + func (this Cryptobin) ISO10126Padding() Cryptobin + func (this Cryptobin) ISO7816_4Padding() Cryptobin + func (this Cryptobin) ISO97971Padding() Cryptobin + func (this Cryptobin) Idea() Cryptobin + func (this Cryptobin) Kasumi() Cryptobin + func (this Cryptobin) Khazad() Cryptobin + func (this Cryptobin) Kseed() Cryptobin + func (this Cryptobin) Kuznyechik() Cryptobin + func (this Cryptobin) Lea() Cryptobin + func (this Cryptobin) Misty1() Cryptobin + func (this Cryptobin) ModeBy(mode Mode, cfg ...map[string]any) Cryptobin + func (this Cryptobin) Multi2(rounds int32) Cryptobin + func (this Cryptobin) MultipleBy(multiple Multiple, cfg ...map[string]any) Cryptobin + func (this Cryptobin) NoPadding() Cryptobin + func (this Cryptobin) NoParse() Cryptobin + func (this Cryptobin) OCFB(resync bool) Cryptobin + func (this Cryptobin) OFB() Cryptobin + func (this Cryptobin) OFB8() Cryptobin + func (this Cryptobin) OnError(fn ErrorFunc) Cryptobin + func (this Cryptobin) PBOC2Padding() Cryptobin + func (this Cryptobin) PCBC() Cryptobin + func (this Cryptobin) PKCS5Padding() Cryptobin + func (this Cryptobin) PKCS7Padding() Cryptobin + func (this Cryptobin) PaddingBy(padding Padding, cfg ...map[string]any) Cryptobin + func (this Cryptobin) Present() Cryptobin + func (this Cryptobin) PutConfig(key string, value any) Cryptobin + func (this Cryptobin) RC2() Cryptobin + func (this Cryptobin) RC4() Cryptobin + func (this Cryptobin) RC4MD5() Cryptobin + func (this Cryptobin) RC5(wordSize, rounds uint) Cryptobin + func (this Cryptobin) RC6() Cryptobin + func (this Cryptobin) Rijndael(blockSize int) Cryptobin + func (this Cryptobin) Rijndael128() Cryptobin + func (this Cryptobin) Rijndael192() Cryptobin + func (this Cryptobin) Rijndael256() Cryptobin + func (this Cryptobin) SM4() Cryptobin + func (this Cryptobin) Safer(typ string, rounds int32) Cryptobin + func (this Cryptobin) Saferplus() Cryptobin + func (this Cryptobin) Seed() Cryptobin + func (this Cryptobin) Serpent() Cryptobin + func (this Cryptobin) SetConfig(data map[string]any) Cryptobin + func (this Cryptobin) SetData(data string) Cryptobin + func (this Cryptobin) SetIv(data string) Cryptobin + func (this Cryptobin) SetKey(data string) Cryptobin + func (this Cryptobin) SetMode(mode Mode, cfg map[string]any) Cryptobin + func (this Cryptobin) SetMultiple(multiple Multiple, cfg map[string]any) Cryptobin + func (this Cryptobin) SetPadding(padding Padding, cfg map[string]any) Cryptobin + func (this Cryptobin) SetParsedData(data string) Cryptobin + func (this Cryptobin) String() string + func (this Cryptobin) TBCPadding() Cryptobin + func (this Cryptobin) Tea(rounds ...int) Cryptobin + func (this Cryptobin) ToBase64String() string + func (this Cryptobin) ToBytes() []byte + func (this Cryptobin) ToHexString() string + func (this Cryptobin) ToString() string + func (this Cryptobin) TriggerError() Cryptobin + func (this Cryptobin) TripleDes() Cryptobin + func (this Cryptobin) Trivium() Cryptobin + func (this Cryptobin) Twine() Cryptobin + func (this Cryptobin) TwoDes() Cryptobin + func (this Cryptobin) Twofish() Cryptobin + func (this Cryptobin) WithConfig(config *config.Config) Cryptobin + func (this Cryptobin) WithData(data []byte) Cryptobin + func (this Cryptobin) WithErrors(errs []error) Cryptobin + func (this Cryptobin) WithIv(iv []byte) Cryptobin + func (this Cryptobin) WithKey(key []byte) Cryptobin + func (this Cryptobin) WithMode(mode Mode) Cryptobin + func (this Cryptobin) WithMultiple(multiple Multiple) Cryptobin + func (this Cryptobin) WithPadding(padding Padding) Cryptobin + func (this Cryptobin) WithParsedData(data []byte) Cryptobin + func (this Cryptobin) X923Padding() Cryptobin + func (this Cryptobin) Xtea() Cryptobin + func (this Cryptobin) Xts(cipher string, sectorNum uint64) Cryptobin + func (this Cryptobin) ZeroPadding() Cryptobin + type DataName interface + type DataSet struct + func NewDataSet[N DataName, M any]() *DataSet[N, M] + func (this *DataSet[N, M]) Add(name N, data func() M) *DataSet[N, M] + func (this *DataSet[N, M]) All() map[N]func() M + func (this *DataSet[N, M]) Clean() + func (this *DataSet[N, M]) Get(name N) func() M + func (this *DataSet[N, M]) Has(name N) bool + func (this *DataSet[N, M]) Len() int + func (this *DataSet[N, M]) Names() []N + func (this *DataSet[N, M]) Remove(name N) *DataSet[N, M] + type EncryptAes struct + func (this EncryptAes) Decrypt(data []byte, opt IOption) ([]byte, error) + func (this EncryptAes) Encrypt(data []byte, opt IOption) ([]byte, error) + type EncryptAria struct + func (this EncryptAria) Decrypt(data []byte, opt IOption) ([]byte, error) + func (this EncryptAria) Encrypt(data []byte, opt IOption) ([]byte, error) + type EncryptBlowfish struct + func (this EncryptBlowfish) Decrypt(data []byte, opt IOption) ([]byte, error) + func (this EncryptBlowfish) Encrypt(data []byte, opt IOption) ([]byte, error) + type EncryptCamellia struct + func (this EncryptCamellia) Decrypt(data []byte, opt IOption) ([]byte, error) + func (this EncryptCamellia) Encrypt(data []byte, opt IOption) ([]byte, error) + type EncryptCast5 struct + func (this EncryptCast5) Decrypt(data []byte, opt IOption) ([]byte, error) + func (this EncryptCast5) Encrypt(data []byte, opt IOption) ([]byte, error) + type EncryptChacha20 struct + func (this EncryptChacha20) Decrypt(data []byte, opt IOption) ([]byte, error) + func (this EncryptChacha20) Encrypt(data []byte, opt IOption) ([]byte, error) + type EncryptChacha20poly1305 struct + func (this EncryptChacha20poly1305) Decrypt(data []byte, opt IOption) ([]byte, error) + func (this EncryptChacha20poly1305) Encrypt(data []byte, opt IOption) ([]byte, error) + type EncryptChacha20poly1305X struct + func (this EncryptChacha20poly1305X) Decrypt(data []byte, opt IOption) ([]byte, error) + func (this EncryptChacha20poly1305X) Encrypt(data []byte, opt IOption) ([]byte, error) + type EncryptDes struct + func (this EncryptDes) Decrypt(data []byte, opt IOption) ([]byte, error) + func (this EncryptDes) Encrypt(data []byte, opt IOption) ([]byte, error) + type EncryptGost struct + func (this EncryptGost) Decrypt(data []byte, opt IOption) ([]byte, error) + func (this EncryptGost) Encrypt(data []byte, opt IOption) ([]byte, error) + type EncryptHight struct + func (this EncryptHight) Decrypt(data []byte, opt IOption) ([]byte, error) + func (this EncryptHight) Encrypt(data []byte, opt IOption) ([]byte, error) + type EncryptIdea struct + func (this EncryptIdea) Decrypt(data []byte, opt IOption) ([]byte, error) + func (this EncryptIdea) Encrypt(data []byte, opt IOption) ([]byte, error) + type EncryptKasumi struct + func (this EncryptKasumi) Decrypt(data []byte, opt IOption) ([]byte, error) + func (this EncryptKasumi) Encrypt(data []byte, opt IOption) ([]byte, error) + type EncryptKhazad struct + func (this EncryptKhazad) Decrypt(data []byte, opt IOption) ([]byte, error) + func (this EncryptKhazad) Encrypt(data []byte, opt IOption) ([]byte, error) + type EncryptKseed struct + func (this EncryptKseed) Decrypt(data []byte, opt IOption) ([]byte, error) + func (this EncryptKseed) Encrypt(data []byte, opt IOption) ([]byte, error) + type EncryptKuznyechik struct + func (this EncryptKuznyechik) Decrypt(data []byte, opt IOption) ([]byte, error) + func (this EncryptKuznyechik) Encrypt(data []byte, opt IOption) ([]byte, error) + type EncryptLea struct + func (this EncryptLea) Decrypt(data []byte, opt IOption) ([]byte, error) + func (this EncryptLea) Encrypt(data []byte, opt IOption) ([]byte, error) + type EncryptMisty1 struct + func (this EncryptMisty1) Decrypt(data []byte, opt IOption) ([]byte, error) + func (this EncryptMisty1) Encrypt(data []byte, opt IOption) ([]byte, error) + type EncryptMulti2 struct + func (this EncryptMulti2) Decrypt(data []byte, opt IOption) ([]byte, error) + func (this EncryptMulti2) Encrypt(data []byte, opt IOption) ([]byte, error) + type EncryptPresent struct + func (this EncryptPresent) Decrypt(data []byte, opt IOption) ([]byte, error) + func (this EncryptPresent) Encrypt(data []byte, opt IOption) ([]byte, error) + type EncryptRC2 struct + func (this EncryptRC2) Decrypt(data []byte, opt IOption) ([]byte, error) + func (this EncryptRC2) Encrypt(data []byte, opt IOption) ([]byte, error) + type EncryptRC4 struct + func (this EncryptRC4) Decrypt(data []byte, opt IOption) ([]byte, error) + func (this EncryptRC4) Encrypt(data []byte, opt IOption) ([]byte, error) + type EncryptRC4MD5 struct + func (this EncryptRC4MD5) Decrypt(data []byte, opt IOption) ([]byte, error) + func (this EncryptRC4MD5) Encrypt(data []byte, opt IOption) ([]byte, error) + type EncryptRC5 struct + func (this EncryptRC5) Decrypt(data []byte, opt IOption) ([]byte, error) + func (this EncryptRC5) Encrypt(data []byte, opt IOption) ([]byte, error) + type EncryptRC6 struct + func (this EncryptRC6) Decrypt(data []byte, opt IOption) ([]byte, error) + func (this EncryptRC6) Encrypt(data []byte, opt IOption) ([]byte, error) + type EncryptRijndael struct + func (this EncryptRijndael) Decrypt(data []byte, opt IOption) ([]byte, error) + func (this EncryptRijndael) Encrypt(data []byte, opt IOption) ([]byte, error) + type EncryptRijndael128 struct + func (this EncryptRijndael128) Decrypt(data []byte, opt IOption) ([]byte, error) + func (this EncryptRijndael128) Encrypt(data []byte, opt IOption) ([]byte, error) + type EncryptRijndael192 struct + func (this EncryptRijndael192) Decrypt(data []byte, opt IOption) ([]byte, error) + func (this EncryptRijndael192) Encrypt(data []byte, opt IOption) ([]byte, error) + type EncryptRijndael256 struct + func (this EncryptRijndael256) Decrypt(data []byte, opt IOption) ([]byte, error) + func (this EncryptRijndael256) Encrypt(data []byte, opt IOption) ([]byte, error) + type EncryptSM4 struct + func (this EncryptSM4) Decrypt(data []byte, opt IOption) ([]byte, error) + func (this EncryptSM4) Encrypt(data []byte, opt IOption) ([]byte, error) + type EncryptSafer struct + func (this EncryptSafer) Decrypt(data []byte, opt IOption) ([]byte, error) + func (this EncryptSafer) Encrypt(data []byte, opt IOption) ([]byte, error) + type EncryptSaferplus struct + func (this EncryptSaferplus) Decrypt(data []byte, opt IOption) ([]byte, error) + func (this EncryptSaferplus) Encrypt(data []byte, opt IOption) ([]byte, error) + type EncryptSeed struct + func (this EncryptSeed) Decrypt(data []byte, opt IOption) ([]byte, error) + func (this EncryptSeed) Encrypt(data []byte, opt IOption) ([]byte, error) + type EncryptSerpent struct + func (this EncryptSerpent) Decrypt(data []byte, opt IOption) ([]byte, error) + func (this EncryptSerpent) Encrypt(data []byte, opt IOption) ([]byte, error) + type EncryptTea struct + func (this EncryptTea) Decrypt(data []byte, opt IOption) ([]byte, error) + func (this EncryptTea) Encrypt(data []byte, opt IOption) ([]byte, error) + type EncryptTripleDes struct + func (this EncryptTripleDes) Decrypt(data []byte, opt IOption) ([]byte, error) + func (this EncryptTripleDes) Encrypt(data []byte, opt IOption) ([]byte, error) + type EncryptTrivium struct + func (this EncryptTrivium) Decrypt(data []byte, opt IOption) ([]byte, error) + func (this EncryptTrivium) Encrypt(data []byte, opt IOption) ([]byte, error) + type EncryptTwine struct + func (this EncryptTwine) Decrypt(data []byte, opt IOption) ([]byte, error) + func (this EncryptTwine) Encrypt(data []byte, opt IOption) ([]byte, error) + type EncryptTwoDes struct + func (this EncryptTwoDes) Decrypt(data []byte, opt IOption) ([]byte, error) + func (this EncryptTwoDes) Encrypt(data []byte, opt IOption) ([]byte, error) + type EncryptTwofish struct + func (this EncryptTwofish) Decrypt(data []byte, opt IOption) ([]byte, error) + func (this EncryptTwofish) Encrypt(data []byte, opt IOption) ([]byte, error) + type EncryptXtea struct + func (this EncryptXtea) Decrypt(data []byte, opt IOption) ([]byte, error) + func (this EncryptXtea) Encrypt(data []byte, opt IOption) ([]byte, error) + type EncryptXts struct + func (this EncryptXts) Decrypt(data []byte, opt IOption) ([]byte, error) + func (this EncryptXts) Encrypt(data []byte, opt IOption) ([]byte, error) + type ErrorFunc = func([]error) + type IEncrypt interface + Decrypt func([]byte, IOption) ([]byte, error) + Encrypt func([]byte, IOption) ([]byte, error) + type IMode interface + Decrypt func([]byte, cipher.Block, IOption) ([]byte, error) + Encrypt func([]byte, cipher.Block, IOption) ([]byte, error) + type IOption interface + Config func() *config.Config + Iv func() []byte + Key func() []byte + Mode func() Mode + Multiple func() Multiple + Padding func() Padding + type IPadding interface + Padding func([]byte, int, IOption) []byte + UnPadding func([]byte, IOption) ([]byte, error) + type ISO10126Paddinger struct + func (this ISO10126Paddinger) Padding(plainText []byte, blockSize int, opt IOption) []byte + func (this ISO10126Paddinger) UnPadding(cipherText []byte, opt IOption) ([]byte, error) + type ISO7816_4Paddinger struct + func (this ISO7816_4Paddinger) Padding(plainText []byte, blockSize int, opt IOption) []byte + func (this ISO7816_4Paddinger) UnPadding(cipherText []byte, opt IOption) ([]byte, error) + type ISO97971Paddinger struct + func (this ISO97971Paddinger) Padding(plainText []byte, blockSize int, opt IOption) []byte + func (this ISO97971Paddinger) UnPadding(cipherText []byte, opt IOption) ([]byte, error) + type Mode uint + const BC + const CBC + const CCM + const CFB + const CFB1 + const CFB128 + const CFB8 + const CTR + const ECB + const GCM + const HCTR + const OCFB + const OFB + const OFB8 + const PCBC + func (this Mode) String() string + type ModeBC struct + func (this ModeBC) Decrypt(data []byte, block cipher.Block, opt IOption) ([]byte, error) + func (this ModeBC) Encrypt(plain []byte, block cipher.Block, opt IOption) ([]byte, error) + type ModeCBC struct + func (this ModeCBC) Decrypt(data []byte, block cipher.Block, opt IOption) ([]byte, error) + func (this ModeCBC) Encrypt(plain []byte, block cipher.Block, opt IOption) ([]byte, error) + type ModeCCM struct + func (this ModeCCM) Decrypt(data []byte, block cipher.Block, opt IOption) ([]byte, error) + func (this ModeCCM) Encrypt(plain []byte, block cipher.Block, opt IOption) ([]byte, error) + type ModeCFB struct + func (this ModeCFB) Decrypt(data []byte, block cipher.Block, opt IOption) ([]byte, error) + func (this ModeCFB) Encrypt(plain []byte, block cipher.Block, opt IOption) ([]byte, error) + type ModeCFB1 struct + func (this ModeCFB1) Decrypt(data []byte, block cipher.Block, opt IOption) ([]byte, error) + func (this ModeCFB1) Encrypt(plain []byte, block cipher.Block, opt IOption) ([]byte, error) + type ModeCFB8 struct + func (this ModeCFB8) Decrypt(data []byte, block cipher.Block, opt IOption) ([]byte, error) + func (this ModeCFB8) Encrypt(plain []byte, block cipher.Block, opt IOption) ([]byte, error) + type ModeCTR struct + func (this ModeCTR) Decrypt(data []byte, block cipher.Block, opt IOption) ([]byte, error) + func (this ModeCTR) Encrypt(plain []byte, block cipher.Block, opt IOption) ([]byte, error) + type ModeECB struct + func (this ModeECB) Decrypt(data []byte, block cipher.Block, opt IOption) ([]byte, error) + func (this ModeECB) Encrypt(plain []byte, block cipher.Block, opt IOption) ([]byte, error) + type ModeGCM struct + func (this ModeGCM) Decrypt(data []byte, block cipher.Block, opt IOption) ([]byte, error) + func (this ModeGCM) Encrypt(plain []byte, block cipher.Block, opt IOption) ([]byte, error) + type ModeHCTR struct + func (this ModeHCTR) Decrypt(data []byte, block cipher.Block, opt IOption) ([]byte, error) + func (this ModeHCTR) Encrypt(plain []byte, block cipher.Block, opt IOption) ([]byte, error) + type ModeOCFB struct + func (this ModeOCFB) Decrypt(data []byte, block cipher.Block, opt IOption) ([]byte, error) + func (this ModeOCFB) Encrypt(plain []byte, block cipher.Block, opt IOption) ([]byte, error) + type ModeOFB struct + func (this ModeOFB) Decrypt(data []byte, block cipher.Block, opt IOption) ([]byte, error) + func (this ModeOFB) Encrypt(plain []byte, block cipher.Block, opt IOption) ([]byte, error) + type ModeOFB8 struct + func (this ModeOFB8) Decrypt(data []byte, block cipher.Block, opt IOption) ([]byte, error) + func (this ModeOFB8) Encrypt(plain []byte, block cipher.Block, opt IOption) ([]byte, error) + type ModePCBC struct + func (this ModePCBC) Decrypt(data []byte, block cipher.Block, opt IOption) ([]byte, error) + func (this ModePCBC) Encrypt(plain []byte, block cipher.Block, opt IOption) ([]byte, error) + type Multiple uint + const Aes + const Aria + const Blowfish + const Camellia + const Cast5 + const Chacha20 + const Chacha20poly1305 + const Chacha20poly1305X + const Des + const Gost + const Hight + const Idea + const Kasumi + const Khazad + const Kseed + const Kuznyechik + const Lea + const Misty1 + const Multi2 + const Present + const RC2 + const RC4 + const RC4MD5 + const RC5 + const RC6 + const Rijndael + const Rijndael128 + const Rijndael192 + const Rijndael256 + const SM4 + const Safer + const Saferplus + const Seed + const Serpent + const Tea + const TripleDes + const Trivium + const Twine + const TwoDes + const Twofish + const Xtea + const Xts + func (this Multiple) String() string + type NoPaddinger struct + func (this NoPaddinger) Padding(plainText []byte, blockSize int, opt IOption) []byte + func (this NoPaddinger) UnPadding(cipherText []byte, opt IOption) ([]byte, error) + type PBOC2Paddinger struct + func (this PBOC2Paddinger) Padding(plainText []byte, blockSize int, opt IOption) []byte + func (this PBOC2Paddinger) UnPadding(cipherText []byte, opt IOption) ([]byte, error) + type PKCS5Paddinger struct + func (this PKCS5Paddinger) Padding(plainText []byte, blockSize int, opt IOption) []byte + func (this PKCS5Paddinger) UnPadding(cipherText []byte, opt IOption) ([]byte, error) + type PKCS7Paddinger struct + func (this PKCS7Paddinger) Padding(plainText []byte, blockSize int, opt IOption) []byte + func (this PKCS7Paddinger) UnPadding(cipherText []byte, opt IOption) ([]byte, error) + type Padding uint + const ISO10126Padding + const ISO7816_4Padding + const ISO97971Padding + const NoPadding + const PBOC2Padding + const PKCS5Padding + const PKCS7Padding + const TBCPadding + const X923Padding + const ZeroPadding + func (this Padding) String() string + type TBCPaddinger struct + func (this TBCPaddinger) Padding(plainText []byte, blockSize int, opt IOption) []byte + func (this TBCPaddinger) UnPadding(cipherText []byte, opt IOption) ([]byte, error) + type TypeName interface + type TypeSet struct + func NewTypeSet[N TypeName, D any](max N) *TypeSet[N, D] + func (this *TypeSet[N, D]) Generate() N + func (this *TypeSet[N, D]) Names() *DataSet[N, D] + type X923Paddinger struct + func (this X923Paddinger) Padding(plainText []byte, blockSize int, opt IOption) []byte + func (this X923Paddinger) UnPadding(cipherText []byte, opt IOption) ([]byte, error) + type ZeroPaddinger struct + func (this ZeroPaddinger) Padding(plainText []byte, blockSize int, opt IOption) []byte + func (this ZeroPaddinger) UnPadding(cipherText []byte, opt IOption) ([]byte, error)