6 * Description: Implementation of the RC6 cipher algorithm.
7 * This implementation is restricted to 32-bit words, but free in the choice of number of rounds (0 to 255).
13 typedef struct rc6_ctx_st{
14 uint8_t rounds; /* specifys the number of rounds; default: 20 */
15 uint32_t* S; /* the round-keys */
19 uint8_t rc6_init(rc6_ctx_t *s,void* key, uint16_t keylength);
21 uint8_t rc6_initl(rc6_ctx_t *s,void* key, uint16_t keylength, uint8_t rounds);
23 void rc6_enc(rc6_ctx_t *s, void* block);
25 void rc6_dec(rc6_ctx_t *s, void* block);
27 void rc6_free(rc6_ctx_t *s);