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. | |
| int(*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. | |
| void(*const | ClearKeyState )(const void *keyState) |
| Clear the key state and free any resources allocated by the call to Generate key state. | |
A block cipher algorithm implementation.
This structure contains the information and functions necessary to access a generic block cipher implementation. The implementation is strictly 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.