MeterLogger
|
Go to the source code of this file.
Macros | |
#define | Nb 4 |
#define | Nk 4 |
#define | KEYLEN 16 |
#define | Nr 10 |
#define | MULTIPLY_AS_A_FUNCTION 0 |
#define | Multiply(x, y) |
Typedefs | |
typedef uint8_t | state_t[4][4] |
Functions | |
static ICACHE_FLASH_ATTR uint8_t | getSBoxValue (uint8_t num) |
static ICACHE_FLASH_ATTR uint8_t | getSBoxInvert (uint8_t num) |
static ICACHE_FLASH_ATTR void | KeyExpansion (void) |
static ICACHE_FLASH_ATTR void | AddRoundKey (uint8_t round) |
static ICACHE_FLASH_ATTR void | SubBytes (void) |
static ICACHE_FLASH_ATTR void | ShiftRows (void) |
static ICACHE_FLASH_ATTR uint8_t | xtime (uint8_t x) |
static ICACHE_FLASH_ATTR void | MixColumns (void) |
static ICACHE_FLASH_ATTR void | InvMixColumns (void) |
static ICACHE_FLASH_ATTR void | InvSubBytes (void) |
static ICACHE_FLASH_ATTR void | InvShiftRows (void) |
static ICACHE_FLASH_ATTR void | Cipher (void) |
static ICACHE_FLASH_ATTR void | InvCipher (void) |
static ICACHE_FLASH_ATTR void | BlockCopy (uint8_t *output, const uint8_t *input) |
Variables | |
static state_t * | state |
static uint8_t | RoundKey [176] |
static const uint8_t * | Key |
static const uint8_t | sbox [256] |
static const uint8_t | rsbox [256] |
static const uint8_t | Rcon [255] |
#define KEYLEN 16 |
Definition at line 50 of file aes.c.
Referenced by BlockCopy().
#define Multiply | ( | x, | |
y | |||
) |
Definition at line 322 of file aes.c.
Referenced by InvMixColumns(), and MixColumns().
#define Nb 4 |
Definition at line 46 of file aes.c.
Referenced by AddRoundKey(), and KeyExpansion().
#define Nk 4 |
Definition at line 48 of file aes.c.
Referenced by KeyExpansion().
#define Nr 10 |
Definition at line 52 of file aes.c.
Referenced by Cipher(), InvCipher(), and KeyExpansion().
|
static |
Definition at line 228 of file aes.c.
References ICACHE_FLASH_ATTR, Nb, and RoundKey.
Referenced by Cipher(), and InvCipher().
|
static |
Definition at line 453 of file aes.c.
References AES128_CBC_decrypt_buffer(), AES128_CBC_encrypt_buffer(), AES128_ECB_decrypt(), AES128_ECB_encrypt(), Cipher(), ICACHE_FLASH_ATTR, InvCipher(), key, Key, KeyExpansion(), KEYLEN, memset, and state.
|
static |
Definition at line 401 of file aes.c.
References AddRoundKey(), ICACHE_FLASH_ATTR, MixColumns(), Nr, ShiftRows(), and SubBytes().
Referenced by BlockCopy().
|
static |
Definition at line 153 of file aes.c.
References ICACHE_FLASH_ATTR, and rsbox.
Referenced by InvSubBytes().
|
static |
Definition at line 147 of file aes.c.
References ICACHE_FLASH_ATTR, and sbox.
Referenced by KeyExpansion(), and SubBytes().
|
static |
Definition at line 427 of file aes.c.
References AddRoundKey(), ICACHE_FLASH_ATTR, InvMixColumns(), InvShiftRows(), InvSubBytes(), and Nr.
Referenced by BlockCopy().
|
static |
Definition at line 335 of file aes.c.
References ICACHE_FLASH_ATTR, and Multiply.
Referenced by InvCipher().
|
static |
Definition at line 370 of file aes.c.
References ICACHE_FLASH_ATTR.
Referenced by InvCipher().
|
static |
Definition at line 357 of file aes.c.
References getSBoxInvert(), ICACHE_FLASH_ATTR, and state.
Referenced by InvCipher().
|
static |
Definition at line 160 of file aes.c.
References getSBoxValue(), ICACHE_FLASH_ATTR, Key, Nb, Nk, Nr, Rcon, and RoundKey.
Referenced by BlockCopy().
|
static |
|
static |
Definition at line 259 of file aes.c.
References ICACHE_FLASH_ATTR.
Referenced by Cipher().
|
static |
Definition at line 243 of file aes.c.
References getSBoxValue(), ICACHE_FLASH_ATTR, and state.
Referenced by Cipher().
|
static |
Definition at line 288 of file aes.c.
References ICACHE_FLASH_ATTR.
Referenced by MixColumns().
|
static |
Definition at line 73 of file aes.c.
Referenced by BlockCopy(), and KeyExpansion().
|
static |
Definition at line 124 of file aes.c.
Referenced by KeyExpansion().
|
static |
Definition at line 70 of file aes.c.
Referenced by AddRoundKey(), and KeyExpansion().
|
static |
Definition at line 102 of file aes.c.
Referenced by getSBoxInvert().
|
static |
Definition at line 83 of file aes.c.
Referenced by getSBoxValue().
|
static |
Definition at line 67 of file aes.c.
Referenced by BlockCopy(), InvSubBytes(), netif_add(), and SubBytes().