Tiny_AES

Undocumented in source.
@safe @nogc
struct Tiny_AES (
int KEY_LENGTH
Mode mode = Mode.CBC
) {}

Constructors

this
this(const(ubyte[KEY_SIZE]) key)
Undocumented in source.
this
this(const(ubyte[KEY_SIZE]) key, const(ubyte[BLOCK_SIZE]) iv)
Undocumented in source.

Members

Aliases

decrypt
alias decrypt = xcrypt
Undocumented in source.
encrypt
alias encrypt = xcrypt
Undocumented in source.
state_t
alias state_t = ubyte[4][4]

Functions

decrypt
void decrypt(ubyte[] buf)
decrypt
void decrypt(ubyte[] buf)
Undocumented in source. Be warned that the author may not have intended to support it.
decrypt
void decrypt(ubyte[] buf)
Undocumented in source. Be warned that the author may not have intended to support it.
encrypt
void encrypt(ubyte[] buf)
encrypt
void encrypt(ubyte[] buf)
Undocumented in source. Be warned that the author may not have intended to support it.
encrypt
void encrypt(ubyte[] buf)
Undocumented in source. Be warned that the author may not have intended to support it.
iv
void iv(const(ubyte[BLOCK_SIZE]) iv)
Undocumented in source. Be warned that the author may not have intended to support it.
xcrypt
void xcrypt(ubyte[] buf)
Undocumented in source. Be warned that the author may not have intended to support it.

Manifest constants

BLOCK_SIZE
enum BLOCK_SIZE;
Undocumented in source.
KEY_SIZE
enum KEY_SIZE;
Undocumented in source.
Nb
enum Nb;
Undocumented in source.
Nk
enum Nk;
Undocumented in source.
Nk
enum Nk;
Undocumented in source.
Nk
enum Nk;
Undocumented in source.
Nr
enum Nr;
Undocumented in source.
Nr
enum Nr;
Undocumented in source.
Nr
enum Nr;
Undocumented in source.
Rcon
enum Rcon;
Undocumented in source.
keyExpSize
enum keyExpSize;
Undocumented in source.
keyExpSize
enum keyExpSize;
Undocumented in source.
keyExpSize
enum keyExpSize;
Undocumented in source.

Static variables

rsbox
immutable(ubyte[256]) rsbox;
Undocumented in source.
sbox
immutable(ubyte[256]) sbox;
Undocumented in source.

Structs

Context
struct Context
Undocumented in source.

Unions

State
union State
Undocumented in source.

Variables

ctx
Context ctx;
Undocumented in source.

Meta