This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Defines | |
#define | AES_SMALL_TABLES |
#define | RCON(i) (rcons[(i)] << 24) |
#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 | TE41(i) ((Te0[((i) >> 24) & 0xff] << 8) & 0xff000000) |
#define | TE42(i) (Te0[((i) >> 16) & 0xff] & 0x00ff0000) |
#define | TE43(i) (Te0[((i) >> 8) & 0xff] & 0x0000ff00) |
#define | TE44(i) ((Te0[(i) & 0xff] >> 8) & 0x000000ff) |
#define | TE421(i) ((Te0[((i) >> 16) & 0xff] << 8) & 0xff000000) |
#define | TE432(i) (Te0[((i) >> 8) & 0xff] & 0x00ff0000) |
#define | TE443(i) (Te0[(i) & 0xff] & 0x0000ff00) |
#define | TE414(i) ((Te0[((i) >> 24) & 0xff] >> 8) & 0x000000ff) |
#define | TE4(i) ((Te0[(i)] >> 8) & 0x000000ff) |
#define | TD0(i) Td0[((i) >> 24) & 0xff] |
#define | TD1(i) rotr(Td0[((i) >> 16) & 0xff], 8) |
#define | TD2(i) rotr(Td0[((i) >> 8) & 0xff], 16) |
#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 | TD0_(i) Td0[(i) & 0xff] |
#define | TD1_(i) rotr(Td0[(i) & 0xff], 8) |
#define | TD2_(i) rotr(Td0[(i) & 0xff], 16) |
#define | TD3_(i) rotr(Td0[(i) & 0xff], 24) |
#define | SWAP(x) (_lrotl(x, 8) & 0x00ff00ff | _lrotr(x, 8) & 0xff00ff00) |
#define | GETU32(pt) |
#define | PUTU32(ct, st) |
#define | ROUND(i, d, s) |
#define | ROUND(i, d, s) |
Functions | |
void | rijndaelKeySetupEnc (u32 rk[], const u8 cipherKey[]) |
void | rijndaelKeySetupDec (u32 rk[], const u8 cipherKey[]) |
void | rijndaelEncrypt (const u32 rk[], const u8 pt[16], u8 ct[16]) |
void | rijndaelDecrypt (const u32 rk[], const u8 ct[16], u8 pt[16]) |
void * | aes_encrypt_init (const u8 *key, size_t len) |
Initialize AES for encryption. | |
void | aes_encrypt (void *ctx, const u8 *plain, u8 *crypt) |
Encrypt one AES block. | |
void | aes_encrypt_deinit (void *ctx) |
Deinitialize AES encryption. | |
void * | aes_decrypt_init (const u8 *key, size_t len) |
Initialize AES for decryption. | |
void | aes_decrypt (void *ctx, const u8 *crypt, u8 *plain) |
Decrypt one AES block. | |
void | aes_decrypt_deinit (void *ctx) |
Deinitialize AES decryption. |
Modifications to public domain implementation:
Alternatively, this software may be distributed under the terms of BSD license.
See README and COPYING for more details.
Definition in file aes.c.
|
Value: (((u32)(pt)[0] << 24) ^ ((u32)(pt)[1] << 16) ^ \ ((u32)(pt)[2] << 8) ^ ((u32)(pt)[3])) |
|
Value: { \ (ct)[0] = (u8)((st) >> 24); (ct)[1] = (u8)((st) >> 16); \ (ct)[2] = (u8)((st) >> 8); (ct)[3] = (u8)(st); } |
|
Value: d##0 = TD0(s##0) ^ TD1(s##3) ^ TD2(s##2) ^ TD3(s##1) ^ rk[4 * i]; \ d##1 = TD0(s##1) ^ TD1(s##0) ^ TD2(s##3) ^ TD3(s##2) ^ rk[4 * i + 1]; \ d##2 = TD0(s##2) ^ TD1(s##1) ^ TD2(s##0) ^ TD3(s##3) ^ rk[4 * i + 2]; \ d##3 = TD0(s##3) ^ TD1(s##2) ^ TD2(s##1) ^ TD3(s##0) ^ rk[4 * i + 3] |
|
Value: d##0 = TE0(s##0) ^ TE1(s##1) ^ TE2(s##2) ^ TE3(s##3) ^ rk[4 * i]; \ d##1 = TE0(s##1) ^ TE1(s##2) ^ TE2(s##3) ^ TE3(s##0) ^ rk[4 * i + 1]; \ d##2 = TE0(s##2) ^ TE1(s##3) ^ TE2(s##0) ^ TE3(s##1) ^ rk[4 * i + 2]; \ d##3 = TE0(s##3) ^ TE1(s##0) ^ TE2(s##1) ^ TE3(s##2) ^ rk[4 * i + 3] |
|
Decrypt one AES block.
|
|
Deinitialize AES decryption.
|
|
Initialize AES for decryption.
Definition at line 1084 of file aes.c. Here is the call graph for this function: |
|
Encrypt one AES block.
|
|
Deinitialize AES encryption.
|
|
Initialize AES for encryption.
Definition at line 1059 of file aes.c. Here is the call graph for this function: |
|
Expand the cipher key into the decryption key schedule.
Definition at line 894 of file aes.c. Here is the call graph for this function: |
|
Expand the cipher key into the encryption key schedule.
|