4 * Copyright 2006 Develer S.r.l. (http://www.develer.com/)
5 * This file is part of DevLib - See README.devlib for information.
8 * \brief TEA Tiny Encription Algorith functions (interface).
11 * \author Francesco Sacchi <batt@develer.com>
13 * Documentation for TEA is available at
14 * http://www.cl.cam.ac.uk/ftp/users/djw3/tea.ps.
20 #include <cfg/compiler.h>
22 #define TEA_KEY_LEN 16 //!< TEA key size.
23 #define TEA_BLOCK_LEN 8 //!< TEA block length.
25 #define DELTA 0x9E3779B9 //!< Magic value. (Golden number * 2^31)
26 #define ROUNDS 32 //!< Number of rounds.
28 void tea_enc(void *_v, void *_k);
29 void tea_dec(void *_v, void *_k);
31 #endif /* ALGOS_TEA_H */