BeRTOS
tea.h
Go to the documentation of this file.
00001 
00043 #ifndef ALGO_TEA_H
00044 #define ALGO_TEA_H
00045 
00046 #include <cfg/compiler.h>
00047 
00048 #define TEA_KEY_LEN     16  //!< TEA key size.
00049 #define TEA_BLOCK_LEN   8   //!< TEA block length.
00050 
00051 #define DELTA   0x9E3779B9  //!< Magic value. (Golden number * 2^31)
00052 #define ROUNDS  32      //!< Number of rounds.
00053 
00054 void tea_enc(void *_v, void *_k);
00055 void tea_dec(void *_v, void *_k);
00056 
00057 #endif /* ALGO_TEA_H */
00058