Ordo
0.3.4
Symmetric Cryptography Library
|
Primitive. More...
#include "ordo/primitives/block_ciphers.h"
Go to the source code of this file.
Functions | |
ORDO_PUBLIC int | aes_init (struct AES_STATE *state, const void *key, size_t key_len, const struct AES_PARAMS *params) |
ORDO_PUBLIC void | aes_forward (const struct AES_STATE *state, void *block) |
ORDO_PUBLIC void | aes_inverse (const struct AES_STATE *state, void *block) |
ORDO_PUBLIC void | aes_final (struct AES_STATE *state) |
ORDO_PUBLIC size_t | aes_query (int query, size_t value) |
ORDO_PUBLIC size_t | aes_bsize (void) |
Primitive.
AES (Advanced Encryption Standard) is a block cipher. It has a 128-bit block size and three possible key sizes, namely 128, 192 and 256 bits. It is based on the Rijndael cipher and was selected as the official encryption standard on November 2001 (FIPS 197).
ORDO_PUBLIC int aes_init | ( | struct AES_STATE * | state, |
const void * | key, | ||
size_t | key_len, | ||
const struct AES_PARAMS * | params | ||
) |
block_init()
ORDO_KEY_LEN | if the key length is not 16, 24, or 32 (bytes). |
ORDO_ARG | if parameters were provided and requested zero rounds or more than 20 rounds. |
ORDO_PUBLIC void aes_forward | ( | const struct AES_STATE * | state, |
void * | block | ||
) |
block_forward()
ORDO_PUBLIC void aes_inverse | ( | const struct AES_STATE * | state, |
void * | block | ||
) |
block_inverse()
ORDO_PUBLIC void aes_final | ( | struct AES_STATE * | state | ) |
block_final()
ORDO_PUBLIC size_t aes_query | ( | int | query, |
size_t | value | ||
) |
block_query()
ORDO_PUBLIC size_t aes_bsize | ( | void | ) |
Gets the size in bytes of an AES_STATE
.