BlockCipher-Interface for the Cipher-Algorithms. More...
#include <ciphers.h>
Data Fields | |
uint8_t | block_size |
Blocksize of this cipher. | |
uint8_t | max_key_size |
Maximum key size for this cipher. | |
int(* | init )(cipher_context_t *ctx, const uint8_t *key, uint8_t key_size) |
the init function | |
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 | |