Versions in this module Expand all Collapse all v1 v1.1.0 Nov 4, 2023 Changes in this version + const AES256IVSize + var Zero = AES256Key + func DecryptAES256(inputData []byte, key AES256Key) ([]byte, error) + func EncryptAES256(inputData []byte, key AES256Key) ([]byte, error) + func PadPKCS5(data []byte, blockSize int) []byte + func RandomBytes(n int) []byte + func UnpadPKCS5(data []byte, blockSize int) ([]byte, error) + type AES256Key [32]byte + func (key *AES256Key) FromBase64(s string) error + func (key *AES256Key) FromHex(s string) error + func (key AES256Key) Bytes() []byte + func (key AES256Key) Hex() string + func (key AES256Key) IsZero() bool + func (key AES256Key) MarshalJSON() ([]byte, error) + func (pkey *AES256Key) UnmarshalJSON(data []byte) error