package aes

import "crypto/aes"

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

Index

Constants

const BlockSize = 16

The AES block size in bytes.

Functions

func NewCipher

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

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.

Types

type KeySizeError

type KeySizeError int

func (KeySizeError) Error

func (k KeySizeError) Error() string

Source Files

aes_gcm.go block.go cipher.go cipher_amd64.go const.go modes.go

Version
v1.7.0-beta.2
Published
Jun 16, 2016
Platform
windows/amd64
Imports
4 packages
Last checked
11 seconds ago

Tools for package owners.