Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
#include "sph_types.h"
Include dependency graph for aes_helper.c:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Macros | |
#define | AESx(x) SPH_C32(x) |
#define | AES0 AES0_LE |
#define | AES1 AES1_LE |
#define | AES2 AES2_LE |
#define | AES3 AES3_LE |
#define | AES_ROUND_LE(X0, X1, X2, X3, K0, K1, K2, K3, Y0, Y1, Y2, Y3) |
#define | AES_ROUND_NOKEY_LE(X0, X1, X2, X3, Y0, Y1, Y2, Y3) AES_ROUND_LE(X0, X1, X2, X3, 0, 0, 0, 0, Y0, Y1, Y2, Y3) |
Variables | |
static const sph_u32 | AES0 [256] |
static const sph_u32 | AES1 [256] |
static const sph_u32 | AES2 [256] |
static const sph_u32 | AES3 [256] |
Macro Definition Documentation
◆ AES0
#define AES0 AES0_LE |
Definition at line 87 of file aes_helper.c.
◆ AES1
#define AES1 AES1_LE |
Definition at line 88 of file aes_helper.c.
◆ AES2
#define AES2 AES2_LE |
Definition at line 89 of file aes_helper.c.
◆ AES3
#define AES3 AES3_LE |
Definition at line 90 of file aes_helper.c.
◆ AES_ROUND_LE
#define AES_ROUND_LE | ( | X0, | |
X1, | |||
X2, | |||
X3, | |||
K0, | |||
K1, | |||
K2, | |||
K3, | |||
Y0, | |||
Y1, | |||
Y2, | |||
Y3 | |||
) |
Value:
do { \
(Y0) = AES0[(X0) & 0xFF] \
^ AES1[((X1) >> 8) & 0xFF] \
^ AES2[((X2) >> 16) & 0xFF] \
^ AES3[((X3) >> 24) & 0xFF] ^ (K0); \
(Y1) = AES0[(X1) & 0xFF] \
^ AES1[((X2) >> 8) & 0xFF] \
^ AES2[((X3) >> 16) & 0xFF] \
^ AES3[((X0) >> 24) & 0xFF] ^ (K1); \
(Y2) = AES0[(X2) & 0xFF] \
^ AES1[((X3) >> 8) & 0xFF] \
^ AES2[((X0) >> 16) & 0xFF] \
^ AES3[((X1) >> 24) & 0xFF] ^ (K2); \
(Y3) = AES0[(X3) & 0xFF] \
^ AES1[((X0) >> 8) & 0xFF] \
^ AES2[((X1) >> 16) & 0xFF] \
^ AES3[((X2) >> 24) & 0xFF] ^ (K3); \
} while (0)
Definition at line 92 of file aes_helper.c.
◆ AES_ROUND_NOKEY_LE
#define AES_ROUND_NOKEY_LE | ( | X0, | |
X1, | |||
X2, | |||
X3, | |||
Y0, | |||
Y1, | |||
Y2, | |||
Y3 | |||
) | AES_ROUND_LE(X0, X1, X2, X3, 0, 0, 0, 0, Y0, Y1, Y2, Y3) |
Definition at line 111 of file aes_helper.c.
◆ AESx
#define AESx | ( | x | ) | SPH_C32(x) |
Definition at line 86 of file aes_helper.c.
Variable Documentation
◆ AES0
|
static |
Definition at line 122 of file aes_helper.c.
◆ AES1
|
static |
Definition at line 189 of file aes_helper.c.
◆ AES2
|
static |
Definition at line 256 of file aes_helper.c.
◆ AES3
|
static |
Definition at line 323 of file aes_helper.c.