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

Primitive. More...

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

Detailed Description

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.

Function Documentation

ORDO_PUBLIC int nullcipher_init ( struct NULLCIPHER_STATE *  state,
const void *  key,
size_t  key_len,
const void *  params 
)
See Also
block_init()
Return values
ORDO_KEY_LENif the key length is not zero.
ORDO_PUBLIC void nullcipher_forward ( const struct NULLCIPHER_STATE *  state,
void *  block 
)
See Also
block_forward()
ORDO_PUBLIC void nullcipher_inverse ( const struct NULLCIPHER_STATE *  state,
void *  block 
)
See Also
block_inverse()
ORDO_PUBLIC void nullcipher_final ( struct NULLCIPHER_STATE *  state)
See Also
block_final()
ORDO_PUBLIC size_t nullcipher_query ( int  query,
size_t  value 
)
See Also
block_query()
ORDO_PUBLIC size_t nullcipher_bsize ( void  )

Gets the size in bytes of a NULLCIPHER_STATE.

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