1 /* 2 * Copyright 2001 Abhijit Menon-Sen <ams@toroid.org> 3 */ 4 5 #include <stdlib.h> 6 #include "platform.h" 7 8 #ifndef _TEA_H_ 9 #define _TEA_H_ 10 11 struct tea { 12 int rounds; 13 uint32_t key[4]; 14 }; 15 16 struct tea *tea_setup(unsigned char *key, int rounds); 17 void tea_free(struct tea *self); 18 void tea_crypt(struct tea *self, 19 unsigned char *input, unsigned char *output, 20 int decrypt); 21 22 #endif 23