1 /* rc5.h a C implementation of RC5 for AVR microcontrollers
4 * email: daniel.otte@rub.de
7 * this implementation is limited to 64bit blocks and a maximum of 255 rounds
15 #include <stdlib.h> /* malloc() & free() */
16 #include <string.h> /* memset() & memcpy() */
18 typedef struct rc5_ctx_st {
23 void rc5_enc(void* buffer, const rc5_ctx_t* ctx);
24 void rc5_dec(void* buffer, const rc5_ctx_t* ctx);
25 void rc5_init(void* key, uint16_t keysize_b, uint8_t rounds, rc5_ctx_t* ctx);
26 void rc5_free(rc5_ctx_t* ctx);