Ordo  0.3.4
Symmetric Cryptography Library
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Functions
aes.h File Reference

Primitive. More...

#include "ordo/primitives/block_ciphers.h"
Include dependency graph for aes.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)
 

Detailed Description

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).

Function Documentation

ORDO_PUBLIC int aes_init ( struct AES_STATE *  state,
const void *  key,
size_t  key_len,
const struct AES_PARAMS params 
)
See Also
block_init()
Return values
ORDO_KEY_LENif the key length is not 16, 24, or 32 (bytes).
ORDO_ARGif parameters were provided and requested zero rounds or more than 20 rounds.
ORDO_PUBLIC void aes_forward ( const struct AES_STATE *  state,
void *  block 
)
See Also
block_forward()
ORDO_PUBLIC void aes_inverse ( const struct AES_STATE *  state,
void *  block 
)
See Also
block_inverse()
ORDO_PUBLIC void aes_final ( struct AES_STATE *  state)
See Also
block_final()
ORDO_PUBLIC size_t aes_query ( int  query,
size_t  value 
)
See Also
block_query()
ORDO_PUBLIC size_t aes_bsize ( void  )

Gets the size in bytes of an AES_STATE.

Returns
The size in bytes of the structure.
Remarks
Binary compatibility layer.