go2hx

manual

github

Module: stdgo.crypto.aes

(view library index)

Overview

Index

Constants

import stdgo.crypto.aes.Aes
final blockSize:haxe.UInt64 = stdgo._internal.crypto.aes.Aes_blockSize.blockSize

Classes

import stdgo.crypto.aes.*

class Aes

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.

Aes function newCipher

function newCipher(_key:Array<UInt>):stdgo.Tuple<stdgo._internal.crypto.cipher.Block, stdgo.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.

(view code)

Typedefs

import stdgo.crypto.aes.*

typedef KeySizeError

typedef KeySizeError = stdgo._internal.crypto.aes.KeySizeError;

typedef T_cbcDecAble

typedef T_cbcDecAble = stdgo._internal.crypto.aes.T_cbcDecAble;

typedef T_cbcEncAble

typedef T_cbcEncAble = stdgo._internal.crypto.aes.T_cbcEncAble;

typedef T_ctrAble

typedef T_ctrAble = stdgo._internal.crypto.aes.T_ctrAble;

typedef T_gcmAble

typedef T_gcmAble = stdgo._internal.crypto.aes.T_gcmAble;

Abstracts

abstract T_aesCipher

(view file containing code)