2 * a bitsliced implementation of the serpent cipher for avr microcontrollers
12 typedef uint32_t serpent_subkey_t[4];
14 typedef struct serpent_ctx_st {
15 serpent_subkey_t k[33];
18 #define SERPENT_KEY128 128
19 #define SERPENT_KEY192 192
20 #define SERPENT_KEY256 0
23 /* key must be 256bit (32 byte) large! */
24 void serpent_genctx(void * key, uint8_t keysize, serpent_ctx_t * ctx);
25 void serpent_enc(void * buffer, serpent_ctx_t * ctx);
26 void serpent_dec(void * buffer, serpent_ctx_t * ctx);