Versions in this module Expand all Collapse all v1 v1.0.0 Nov 6, 2022 Changes in this version + func IsNotSupported(m Mode) bool + type CryptoMode interface + Decrypt func(ciphertext []byte) ([]byte, error) + Encrypt func(plaintext []byte) ([]byte, error) + GetBlock func() cipher.Block + GetIV func() []byte + GetKey func() []byte + GetPadding func() padding.Padding + SetBlock func(block cipher.Block) + SetIV func(iv []byte) + SetKey func(key []byte) + SetPadding func(padding padding.Padding) + func GetCryptoMode(name string) (CryptoMode, error) + type Mode string + const CBC + const CFB + const CTR + const ECB + const GCM + const OFB + func (m Mode) Is(ms Mode) bool + func (m Mode) Not(ms ...Mode) bool + func (m Mode) String() string