Namespace: go.std.crypto.aes
v1.0Contents
Summary
Provides a low-level interface to the crypto/aes package.
Package aes implements AES encryption (formerly Rijndael), as defined in
U.S. Federal Information Processing Standards Publication 197.
The AES operations in this package are not implemented using constant-time algorithms.
An exception is when running on systems with enabled hardware support for AES
that makes these operations constant-time. Examples include amd64 systems using AES-NI
extensions and s390x systems using Message-Security-Assist extensions.
On such systems, when the result of NewCipher is passed to cipher.NewGCM,
the GHASH operation used by GCM is also constant-time.
Index
Legend
-
Constant
Variable
Function
Macro
Special form
Type
GoVar
Receiver/Method
Constants
Constants are variables with :const true in their metadata. Joker currently does not recognize them as special; as such, it allows redefining them or their values.-
BlockSize
Int v1.0The AES block size in bytes.
Variables
-
(None.)
Functions, Macros, and Special Forms
-
NewCipher
Function v1.0(NewCipher key)
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.
Go input arguments: (key []byte)
Go returns: (crypto/cipher.Block, error)
Joker input arguments: [^arrayOfByte key]
Joker returns: [^go.std.crypto.cipher/Block, ^Error]
Types
-
*KeySizeError
Concrete Type v1.0 -
KeySizeError
Concrete Type v1.0 -
Error
Receiver for KeySizeError v1.0([])
-
arrayOfKeySizeError
Concrete Type v1.0