Defines | Functions | Variables
aes_i.h File Reference
#include "aes.h"
Include dependency graph for aes_i.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define AES_PRIV_SIZE   (4 * 44)
#define AES_SMALL_TABLES
#define GETU32(pt)
#define PUTU32(ct, st)
#define RCON(i)   (rcons[(i)] << 24)
#define TD0(i)   Td0[((i) >> 24) & 0xff]
#define TD0_(i)   Td0[(i) & 0xff]
#define TD1(i)   rotr(Td0[((i) >> 16) & 0xff], 8)
#define TD1_(i)   rotr(Td0[(i) & 0xff], 8)
#define TD2(i)   rotr(Td0[((i) >> 8) & 0xff], 16)
#define TD2_(i)   rotr(Td0[(i) & 0xff], 16)
#define TD3(i)   rotr(Td0[(i) & 0xff], 24)
#define TD3_(i)   rotr(Td0[(i) & 0xff], 24)
#define TD41(i)   (Td4s[((i) >> 24) & 0xff] << 24)
#define TD42(i)   (Td4s[((i) >> 16) & 0xff] << 16)
#define TD43(i)   (Td4s[((i) >> 8) & 0xff] << 8)
#define TD44(i)   (Td4s[(i) & 0xff])
#define TE0(i)   Te0[((i) >> 24) & 0xff]
#define TE1(i)   rotr(Te0[((i) >> 16) & 0xff], 8)
#define TE2(i)   rotr(Te0[((i) >> 8) & 0xff], 16)
#define TE3(i)   rotr(Te0[(i) & 0xff], 24)
#define TE4(i)   ((Te0[(i)] >> 8) & 0x000000ff)
#define TE41(i)   ((Te0[((i) >> 24) & 0xff] << 8) & 0xff000000)
#define TE414(i)   ((Te0[((i) >> 24) & 0xff] >> 8) & 0x000000ff)
#define TE42(i)   (Te0[((i) >> 16) & 0xff] & 0x00ff0000)
#define TE421(i)   ((Te0[((i) >> 16) & 0xff] << 8) & 0xff000000)
#define TE43(i)   (Te0[((i) >> 8) & 0xff] & 0x0000ff00)
#define TE432(i)   (Te0[((i) >> 8) & 0xff] & 0x00ff0000)
#define TE44(i)   ((Te0[(i) & 0xff] >> 8) & 0x000000ff)
#define TE443(i)   (Te0[(i) & 0xff] & 0x0000ff00)

Functions

void rijndaelKeySetupEnc (u32 rk[], const u8 cipherKey[])
static u32 rotr (u32 val, int bits)

Variables

const u32 rcon [10]
const u8 rcons [10]
const u32 Td0 [256]
const u32 Td1 [256]
const u32 Td2 [256]
const u32 Td3 [256]
const u32 Td4 [256]
const u8 Td4s [256]
const u32 Te0 [256]
const u32 Te1 [256]
const u32 Te2 [256]
const u32 Te3 [256]
const u32 Te4 [256]

Define Documentation

#define AES_PRIV_SIZE   (4 * 44)

Definition at line 118 of file aes_i.h.

Definition at line 21 of file aes_i.h.

#define GETU32 (   pt)
Value:
(((u32)(pt)[0] << 24) ^ ((u32)(pt)[1] << 16) ^ \
((u32)(pt)[2] <<  8) ^ ((u32)(pt)[3]))

Definition at line 111 of file aes_i.h.

#define PUTU32 (   ct,
  st 
)
Value:
{ \
(ct)[0] = (u8)((st) >> 24); (ct)[1] = (u8)((st) >> 16); \
(ct)[2] = (u8)((st) >>  8); (ct)[3] = (u8)(st); }

Definition at line 113 of file aes_i.h.

#define RCON (   i)    (rcons[(i)] << 24)

Definition at line 70 of file aes_i.h.

#define TD0 (   i)    Td0[((i) >> 24) & 0xff]

Definition at line 91 of file aes_i.h.

#define TD0_ (   i)    Td0[(i) & 0xff]

Definition at line 99 of file aes_i.h.

#define TD1 (   i)    rotr(Td0[((i) >> 16) & 0xff], 8)

Definition at line 92 of file aes_i.h.

#define TD1_ (   i)    rotr(Td0[(i) & 0xff], 8)

Definition at line 100 of file aes_i.h.

#define TD2 (   i)    rotr(Td0[((i) >> 8) & 0xff], 16)

Definition at line 93 of file aes_i.h.

#define TD2_ (   i)    rotr(Td0[(i) & 0xff], 16)

Definition at line 101 of file aes_i.h.

#define TD3 (   i)    rotr(Td0[(i) & 0xff], 24)

Definition at line 94 of file aes_i.h.

#define TD3_ (   i)    rotr(Td0[(i) & 0xff], 24)

Definition at line 102 of file aes_i.h.

#define TD41 (   i)    (Td4s[((i) >> 24) & 0xff] << 24)

Definition at line 95 of file aes_i.h.

#define TD42 (   i)    (Td4s[((i) >> 16) & 0xff] << 16)

Definition at line 96 of file aes_i.h.

#define TD43 (   i)    (Td4s[((i) >> 8) & 0xff] << 8)

Definition at line 97 of file aes_i.h.

#define TD44 (   i)    (Td4s[(i) & 0xff])

Definition at line 98 of file aes_i.h.

#define TE0 (   i)    Te0[((i) >> 24) & 0xff]

Definition at line 77 of file aes_i.h.

#define TE1 (   i)    rotr(Te0[((i) >> 16) & 0xff], 8)

Definition at line 78 of file aes_i.h.

#define TE2 (   i)    rotr(Te0[((i) >> 8) & 0xff], 16)

Definition at line 79 of file aes_i.h.

#define TE3 (   i)    rotr(Te0[(i) & 0xff], 24)

Definition at line 80 of file aes_i.h.

#define TE4 (   i)    ((Te0[(i)] >> 8) & 0x000000ff)

Definition at line 89 of file aes_i.h.

#define TE41 (   i)    ((Te0[((i) >> 24) & 0xff] << 8) & 0xff000000)

Definition at line 81 of file aes_i.h.

#define TE414 (   i)    ((Te0[((i) >> 24) & 0xff] >> 8) & 0x000000ff)

Definition at line 88 of file aes_i.h.

#define TE42 (   i)    (Te0[((i) >> 16) & 0xff] & 0x00ff0000)

Definition at line 82 of file aes_i.h.

#define TE421 (   i)    ((Te0[((i) >> 16) & 0xff] << 8) & 0xff000000)

Definition at line 85 of file aes_i.h.

#define TE43 (   i)    (Te0[((i) >> 8) & 0xff] & 0x0000ff00)

Definition at line 83 of file aes_i.h.

#define TE432 (   i)    (Te0[((i) >> 8) & 0xff] & 0x00ff0000)

Definition at line 86 of file aes_i.h.

#define TE44 (   i)    ((Te0[(i) & 0xff] >> 8) & 0x000000ff)

Definition at line 84 of file aes_i.h.

#define TE443 (   i)    (Te0[(i) & 0xff] & 0x0000ff00)

Definition at line 87 of file aes_i.h.


Function Documentation

void rijndaelKeySetupEnc ( u32  rk[],
const u8  cipherKey[] 
)

Expand the cipher key into the encryption key schedule.

Returns:
the number of rounds for the given cipher key size.

Definition at line 786 of file aes-internal.c.

static u32 rotr ( u32  val,
int  bits 
) [inline, static]

Definition at line 72 of file aes_i.h.


Variable Documentation

const u32 rcon[10]
const u8 rcons[10]

Definition at line 776 of file aes-internal.c.

const u32 Td0[256]

Definition at line 404 of file aes-internal.c.

const u32 Td1[256]
const u32 Td2[256]
const u32 Td3[256]
const u32 Td4[256]
const u8 Td4s[256]

Definition at line 742 of file aes-internal.c.

const u32 Te0[256]

Definition at line 71 of file aes-internal.c.

const u32 Te1[256]
const u32 Te2[256]
const u32 Te3[256]
const u32 Te4[256]


wpa_supplicant_node
Author(s): Package maintained by Blaise Gassend
autogenerated on Thu Jan 2 2014 11:25:15