cipher_interface_st Struct Reference

BlockCipher-Interface for the Cipher-Algorithms. More...

Detailed Description

BlockCipher-Interface for the Cipher-Algorithms.

Definition at line 75 of file ciphers.h.

#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
 

The documentation for this struct was generated from the following file: