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 | nullcipher_init (struct NULLCIPHER_STATE *state, const void *key, size_t key_len, const void *params) |
ORDO_PUBLIC void | nullcipher_forward (const struct NULLCIPHER_STATE *state, void *block) |
ORDO_PUBLIC void | nullcipher_inverse (const struct NULLCIPHER_STATE *state, void *block) |
ORDO_PUBLIC void | nullcipher_final (struct NULLCIPHER_STATE *state) |
ORDO_PUBLIC size_t | nullcipher_query (int query, size_t value) |
ORDO_PUBLIC size_t | nullcipher_bsize (void) |
Primitive.
This cipher is only used to debug the library and does absolutely nothing, in other words, it is the identity permutation. It accepts no key, that is it only accepts a key length of zero bytes. Its block size is 128 bits and is arbitrarily chosen.
ORDO_PUBLIC int nullcipher_init | ( | struct NULLCIPHER_STATE * | state, |
const void * | key, | ||
size_t | key_len, | ||
const void * | params | ||
) |
block_init()
ORDO_KEY_LEN | if the key length is not zero. |
ORDO_PUBLIC void nullcipher_forward | ( | const struct NULLCIPHER_STATE * | state, |
void * | block | ||
) |
block_forward()
ORDO_PUBLIC void nullcipher_inverse | ( | const struct NULLCIPHER_STATE * | state, |
void * | block | ||
) |
block_inverse()
ORDO_PUBLIC void nullcipher_final | ( | struct NULLCIPHER_STATE * | state | ) |
block_final()
ORDO_PUBLIC size_t nullcipher_query | ( | int | query, |
size_t | value | ||
) |
block_query()
ORDO_PUBLIC size_t nullcipher_bsize | ( | void | ) |
Gets the size in bytes of a NULLCIPHER_STATE
.