aes

package
v0.0.0-...-2575d1c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 12, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const BlockSize = 16

BlockSize is the AES block size in bytes.

Variables

This section is empty.

Functions

func IsSupported

func IsSupported() bool

IsSupported checks whether hardware acceleration is available via AES-NI and SSE 4.1 instructions. This package requires hardware support.

func NewCipher

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

NewCipher creates and returns a new cipher.Block from the provided symmetric encryption key. The keys must be 16 bytes for AES-CBC-128 and AES-GCM-128, 24 bytes for AES-CBC-192 and AES-GCM-192, 32 bytes for AES-CBC-256, AES-GCM-256 and AES-XTS-128 and 64 bytes for AES-XTS-256

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL