BlockCipher-Interface for the Cipher-Algorithms. More...
#include <ciphers.h>
Data Fields | |
| uint8_t | block_size |
| Blocksize of this cipher. | |
| int(* | init )(cipher_context_t *ctx, const uint8_t *key, uint8_t key_size) |
| the init function. More... | |
| int(* | encrypt )(const cipher_context_t *ctx, const uint8_t *plain_block, uint8_t *cipher_block) |
| the encrypt function | |
| int(* | decrypt )(const cipher_context_t *ctx, const uint8_t *cipher_block, uint8_t *plain_block) |
| the decrypt function | |
| int(* cipher_interface_st::init) (cipher_context_t *ctx, const uint8_t *key, uint8_t key_size) |