...
Run Format

Package aes

import "crypto/aes"
Overview
Index

Overview ▾

Package aes implements AES encryption (formerly Rijndael), as defined in U.S. Federal Information Processing Standards Publication 197.

Constants

The AES block size in bytes.

const BlockSize = 16

func NewCipher

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)

type KeySizeError

type KeySizeError int

func (KeySizeError) Error

func (k KeySizeError) Error() string