|
Nostrduino
|
Macros | |
| #define | Nb 4 |
| #define | Nk 8 |
| #define | Nr 14 |
| #define | MULTIPLY_AS_A_FUNCTION 0 |
| #define | getSBoxValue(num) (sbox[(num)]) |
| #define | Multiply(x, y) |
| #define | getSBoxInvert(num) (rsbox[(num)]) |
Typedefs | |
| typedef uint8_t | state_t[4][4] |
Functions | |
| void | AES_init_ctx (struct AES_ctx *ctx, const uint8_t *key) |
| void | AES_init_ctx_iv (struct AES_ctx *ctx, const uint8_t *key, const uint8_t *iv) |
| void | AES_ctx_set_iv (struct AES_ctx *ctx, const uint8_t *iv) |
| void | AES_ECB_encrypt (const struct AES_ctx *ctx, uint8_t *buf) |
| void | AES_ECB_decrypt (const struct AES_ctx *ctx, uint8_t *buf) |
| void | AES_CBC_encrypt_buffer (struct AES_ctx *ctx, uint8_t *buf, size_t length) |
| void | AES_CBC_decrypt_buffer (struct AES_ctx *ctx, uint8_t *buf, size_t length) |
| void | AES_CTR_xcrypt_buffer (struct AES_ctx *ctx, uint8_t *buf, size_t length) |
| #define getSBoxInvert | ( | num | ) | (rsbox[(num)]) |
| #define getSBoxValue | ( | num | ) | (sbox[(num)]) |
| #define Multiply | ( | x, | |
| y | |||
| ) |
| #define MULTIPLY_AS_A_FUNCTION 0 |
| #define Nb 4 |
| #define Nk 8 |
| #define Nr 14 |
| typedef uint8_t state_t[4][4] |
| void AES_CBC_decrypt_buffer | ( | struct AES_ctx * | ctx, |
| uint8_t * | buf, | ||
| size_t | length | ||
| ) |
| void AES_CBC_encrypt_buffer | ( | struct AES_ctx * | ctx, |
| uint8_t * | buf, | ||
| size_t | length | ||
| ) |
| void AES_CTR_xcrypt_buffer | ( | struct AES_ctx * | ctx, |
| uint8_t * | buf, | ||
| size_t | length | ||
| ) |
| void AES_ctx_set_iv | ( | struct AES_ctx * | ctx, |
| const uint8_t * | iv | ||
| ) |
| void AES_ECB_decrypt | ( | const struct AES_ctx * | ctx, |
| uint8_t * | buf | ||
| ) |
| void AES_ECB_encrypt | ( | const struct AES_ctx * | ctx, |
| uint8_t * | buf | ||
| ) |
| void AES_init_ctx | ( | struct AES_ctx * | ctx, |
| const uint8_t * | key | ||
| ) |
| void AES_init_ctx_iv | ( | struct AES_ctx * | ctx, |
| const uint8_t * | key, | ||
| const uint8_t * | iv | ||
| ) |