Go to the source code of this file.
|
#define | ROTR8(x) |
|
#define | XTIME(x) ( ( x << 1 ) ^ ( ( x & 0x80 ) ? 0x1B : 0x00 ) ) |
|
#define | MUL(x, y) ( ( x && y ) ? pow[(log[x] + log[y]) % 255] : 0 ) |
|
#define | GET_UINT32(n, b, i) |
|
#define | PUT_UINT32(n, b, i) |
|
#define | AES_FROUND(X0, X1, X2, X3, Y0, Y1, Y2, Y3) |
|
#define | AES_RROUND(X0, X1, X2, X3, Y0, Y1, Y2, Y3) |
|
◆ AES_FROUND
#define AES_FROUND |
( |
|
X0, |
|
|
|
X1, |
|
|
|
X2, |
|
|
|
X3, |
|
|
|
Y0, |
|
|
|
Y1, |
|
|
|
Y2, |
|
|
|
Y3 |
|
) |
| |
Value:{ \
RK += 4; \
\
X0 = RK[0] ^
FT0[ (
uint8) ( Y0 >> 24 ) ] ^ \
\
X1 = RK[1] ^
FT0[ (
uint8) ( Y1 >> 24 ) ] ^ \
\
X2 = RK[2] ^
FT0[ (
uint8) ( Y2 >> 24 ) ] ^ \
\
X3 = RK[3] ^
FT0[ (
uint8) ( Y3 >> 24 ) ] ^ \
}
◆ AES_RROUND
#define AES_RROUND |
( |
|
X0, |
|
|
|
X1, |
|
|
|
X2, |
|
|
|
X3, |
|
|
|
Y0, |
|
|
|
Y1, |
|
|
|
Y2, |
|
|
|
Y3 |
|
) |
| |
Value:{ \
RK += 4; \
\
X0 = RK[0] ^
RT0[ (
uint8) ( Y0 >> 24 ) ] ^ \
\
X1 = RK[1] ^
RT0[ (
uint8) ( Y1 >> 24 ) ] ^ \
\
X2 = RK[2] ^
RT0[ (
uint8) ( Y2 >> 24 ) ] ^ \
\
X3 = RK[3] ^
RT0[ (
uint8) ( Y3 >> 24 ) ] ^ \
}
◆ GET_UINT32
#define GET_UINT32 |
( |
|
n, |
|
|
|
b, |
|
|
|
i |
|
) |
| |
Value:{ \
(n) = ( (
uint32) (b)[(i) ] << 24 ) \
| ( (
uint32) (b)[(i) + 1] << 16 ) \
| ( (
uint32) (b)[(i) + 2] << 8 ) \
| ( (
uint32) (b)[(i) + 3] ); \
}
Definition at line 410 of file aes.c.
◆ MUL
#define MUL |
( |
|
x, |
|
|
|
y |
|
) |
| ( ( x && y ) ? pow[(log[x] + log[y]) % 255] : 0 ) |
Definition at line 64 of file aes.c.
◆ PUT_UINT32
#define PUT_UINT32 |
( |
|
n, |
|
|
|
b, |
|
|
|
i |
|
) |
| |
Value:{ \
(b)[(i) ] = (
uint8) ( (n) >> 24 ); \
(b)[(i) + 1] = (
uint8) ( (n) >> 16 ); \
(b)[(i) + 2] = (
uint8) ( (n) >> 8 ); \
(b)[(i) + 3] = (
uint8) ( (n) ); \
}
Definition at line 418 of file aes.c.
◆ ROTR8
Value: ( ( ( x << 24 ) & 0xFFFFFFFF ) | \
( ( x & 0xFFFFFFFF ) >> 8 ) )
Definition at line 60 of file aes.c.
◆ XTIME
#define XTIME |
( |
|
x | ) |
( ( x << 1 ) ^ ( ( x & 0x80 ) ? 0x1B : 0x00 ) ) |
Definition at line 63 of file aes.c.
◆ aes_decrypt()
◆ aes_encrypt()
◆ aes_gen_tables()
void aes_gen_tables |
( |
void |
| ) |
|
Definition at line 66 of file aes.c.
◆ aes_set_key()
◆ do_init
Definition at line 56 of file aes.c.
◆ FSb
Definition at line 36 of file aes.c.
◆ FT0
Definition at line 37 of file aes.c.
◆ FT1
Definition at line 38 of file aes.c.
◆ FT2
Definition at line 39 of file aes.c.
◆ FT3
Definition at line 40 of file aes.c.
◆ KT0
◆ KT1
◆ KT2
◆ KT3
◆ KT_init
◆ RCON
Definition at line 52 of file aes.c.
◆ RSb
Definition at line 44 of file aes.c.
◆ RT0
Definition at line 45 of file aes.c.
◆ RT1
Definition at line 46 of file aes.c.
◆ RT2
Definition at line 47 of file aes.c.
◆ RT3
Definition at line 48 of file aes.c.