GATE
blockciphers.h File Reference

Block cipher encryption. More...

Classes

struct  gate_blowfish
 
struct  gate_blowfish_block
 

Macros

#define GATE_BLOWFISH_BLOCKLEN   8
 
#define GATE_XTEA_BLOCKLEN   4
 

Typedefs

typedef struct gate_blowfish gate_blowfish_t
 
typedef struct gate_blowfish_block gate_blowfish_block_t
 

Functions

GATE_ENCODE_API gate_result_t gate_blowfish_init (gate_blowfish_t *bf, void const *key, gate_size_t keylength)
 
GATE_ENCODE_API gate_result_t gate_blowfish_block_init (gate_blowfish_block_t *block, gate_uint32_t l, gate_uint32_t r)
 
GATE_ENCODE_API gate_result_t gate_blowfish_block_load (gate_blowfish_block_t *block, void const *buffer, gate_size_t bufferlen)
 
GATE_ENCODE_API gate_result_t gate_blowfish_encrypt (gate_blowfish_t *bf, void const *src, void *dst, gate_size_t length)
 
GATE_ENCODE_API gate_result_t gate_blowfish_decrypt (gate_blowfish_t *bf, void const *src, void *dst, gate_size_t length)
 
GATE_ENCODE_API gate_result_t gate_blowfish_encrypt_cbc (gate_blowfish_t *bf, void const *src, void *dst, gate_size_t length, gate_blowfish_block_t *block)
 
GATE_ENCODE_API gate_result_t gate_blowfish_decrypt_cbc (gate_blowfish_t *bf, void const *src, void *dst, gate_size_t length, gate_blowfish_block_t *block)
 
GATE_ENCODE_API gate_result_t gate_xtea_block_encrypt (gate_uint32_t *blocks, gate_size_t blocks_count, gate_uint32_t const key[4])
 
GATE_ENCODE_API gate_result_t gate_xtea_block_decrypt (gate_uint32_t *blocks, gate_size_t blocks_count, gate_uint32_t const key[4])
 
GATE_ENCODE_API gate_result_t gate_xtea_encrypt (unsigned char *data, gate_size_t data_length, unsigned char const key[16])
 
GATE_ENCODE_API gate_result_t gate_xtea_decrypt (unsigned char *data, gate_size_t data_length, unsigned char const key[16])
 
GATE_ENCODE_API gate_result_t gate_xxtea_block_encrypt (gate_uint32_t *blocks, gate_size_t blocks_count, gate_uint32_t const key[4])
 
GATE_ENCODE_API gate_result_t gate_xxtea_block_decrypt (gate_uint32_t *blocks, gate_size_t blocks_count, gate_uint32_t const key[4])
 
GATE_ENCODE_API gate_result_t gate_xxtea_encrypt (unsigned char *data, gate_size_t data_length, unsigned char const key[16])
 
GATE_ENCODE_API gate_result_t gate_xxtea_decrypt (unsigned char *data, gate_size_t data_length, unsigned char const key[16])
 

Detailed Description

Block cipher encryption.