23 #ifndef MANTIS_PARALLEL_h
24 #define MANTIS_PARALLEL_h
26 #include "mantis-cipher.h"
92 unsigned rounds,
int mode);
125 (
void *output,
const void *input,
const void *tweak,
size_t size,
State information for Mantis in parallel ECB mode.
void mantis_parallel_ecb_cleanup(MantisParallelECB_t *ecb)
Cleans up a parallel ECB control block for Mantis.
int mantis_parallel_ecb_init(MantisParallelECB_t *ecb)
Initializes Mantis in parallel ECB mode.
void mantis_parallel_ecb_swap_modes(MantisParallelECB_t *ecb)
Swaps the encryption and decryption modes on a parallel Mantis key schedule.
int mantis_parallel_ecb_crypt(void *output, const void *input, const void *tweak, size_t size, const MantisParallelECB_t *ecb)
Encrypts or decrypts a block of data using Mantis in parallel ECB mode.
int mantis_parallel_ecb_set_key(MantisParallelECB_t *ecb, const void *key, unsigned size, unsigned rounds, int mode)
Sets the key schedule for a Mantis block cipher in parallel ECB mode.