OpenDOF Project
Data Fields
DOFCipher Struct Reference

A block cipher algorithm implementation. More...

Data Fields

const unsigned int keyStateSize
 The required size of the key state for this cipher algorithm.
 
const unsigned int blockSize
 The required block size for this cipher algorithm.
 
void(*const GenerateKeyState )(void *keyState, const void *key)
 Initialize internal block cipher state for a given key.
 
void(*const Encrypt )(const void *keyState, void *text)
 Encrypt a block of data.
 
void(*const Decrypt )(const void *keyState, void *text)
 Decrypt a block of data.
 

Detailed Description

A block cipher algorithm implementation.

An implementation of a block cipher.

This structure contains the information and functions necessary to access a generic block cipher implementation. The implementation is stricctly the cipher algorithm itself, and does not contain any mode of operation. All encryption and decryption is handled as a single block at a time (of the cipher's block size). All necessary memory allocation for use of a block cipher is handled by the caller.

See Also
BlockCipher
core-c-dof-oal Version 7.1.5 Build 0
2017-01-25