BlockCipher-Interface for the Cipher-Algorithms.
More...
BlockCipher-Interface for the Cipher-Algorithms.
Definition at line 86 of file ciphers.h.
#include <ciphers.h>
◆ block_size
uint8_t cipher_interface_st::block_size |
Blocksize of this cipher.
Definition at line 88 of file ciphers.h.
◆ decrypt
int(* cipher_interface_st::decrypt) (const cipher_context_t *ctx, const uint8_t *cipher_block, uint8_t *plain_block) |
the decrypt function
Definition at line 103 of file ciphers.h.
◆ encrypt
int(* cipher_interface_st::encrypt) (const cipher_context_t *ctx, const uint8_t *plain_block, uint8_t *cipher_block) |
the encrypt function
Definition at line 99 of file ciphers.h.
◆ init
int(* cipher_interface_st::init) (cipher_context_t *ctx, const uint8_t *key, uint8_t key_size) |
the init function.
This function is responsible for checking that the given key_size is valid for the chosen cipher.
Definition at line 96 of file ciphers.h.
The documentation for this struct was generated from the following file: