Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsNotSupported ¶
Types ¶
type CryptoMode ¶
type CryptoMode interface {
SetPadding(padding padding.Padding)
SetIV(iv []byte)
SetKey(key []byte)
SetBlock(block cipher.Block)
GetPadding() padding.Padding
GetIV() []byte
GetKey() []byte
GetBlock() cipher.Block
Encrypt(plaintext []byte) ([]byte, error)
Decrypt(ciphertext []byte) ([]byte, error)
}
func GetCryptoMode ¶
func GetCryptoMode(name string) (CryptoMode, error)
Click to show internal directories.
Click to hide internal directories.