aes

Imports

Imports #

"crypto/cipher"
"crypto/internal/boring"
"crypto/internal/fips140/aes"
"strconv"

Constants & Variables

BlockSize const #

The AES block size in bytes.

const BlockSize = 16

Type Aliases

KeySizeError type #

type KeySizeError int

Functions

Error method #

func (k KeySizeError) Error() string

NewCipher function #

NewCipher creates and returns a new [cipher.Block]. The key argument should be the AES key, either 16, 24, or 32 bytes to select AES-128, AES-192, or AES-256.

func NewCipher(key []byte) (cipher.Block, error)

Generated with Arrow