6 * Description: Implementation of the CAST5 (aka CAST-128) cipher algorithm as described in RFC 2144
20 typedef enum{false=0,true=1} bool;
26 typedef struct cast5_ctx_st{
28 uint8_t rotl[8]; /* 4 bit from every rotation key is stored here */
29 uint8_t roth[2]; /* 1 bit from every rotation key is stored here */
33 void cast5_init(cast5_ctx_t* s, uint8_t* key, uint8_t keylength);
34 void cast5_enc(cast5_ctx_t *s, void* block);
35 void cast5_dec(cast5_ctx_t *s, void* block);