Sistema l'errore da me commesso in fase di conversione...
[bertos.git] / algos / tea.h
1 /**
2  * \file
3  * <!--
4  * Copyright 2006 Develer S.r.l. (http://www.develer.com/)
5  * This file is part of DevLib - See README.devlib for information.
6  * -->
7  *
8  * \brief TEA Tiny Encription Algorith functions (interface).
9  *
10  * \version $Id$
11  * \author Francesco Sacchi <batt@develer.com>
12  *
13  * Documentation for TEA is available at
14  * http://www.cl.cam.ac.uk/ftp/users/djw3/tea.ps.
15  */
16
17 #ifndef ALGOS_TEA_H
18 #define ALGOS_TEA_H
19
20 #include <cfg/compiler.h>
21
22 #define TEA_KEY_LEN     16      //!< TEA key size.
23 #define TEA_BLOCK_LEN   8       //!< TEA block length.
24
25 #define DELTA   0x9E3779B9      //!< Magic value. (Golden number * 2^31)
26 #define ROUNDS  32              //!< Number of rounds.
27
28 void tea_enc(void *_v, void *_k);
29 void tea_dec(void *_v, void *_k);
30
31 #endif /* ALGOS_TEA_H */
32