Main Page   Data Structures   File List   Data Fields   Globals   Related Pages  

tea.h File Reference

TEA declarations. More...

#include <types.h>

Go to the source code of this file.

Defines

#define TEA_KEY_LEN   16
 TEA key size. More...

#define TEA_BLOCK_LEN   8
 TEA block length. More...

#define DELTA   0x9E3779B9
 Magic value. (Golden number * 2^31). More...

#define ROUNDS   32
 Number of rounds. More...


Functions

void tea_enc (iu32 *v, iu32 *k)
 TEA encryption function. More...

void tea_dec (iu32 *v, iu32 *k)
 TEA decryption function. More...


Detailed Description

TEA declarations.

Documentation for TEA is available at http://www.cl.cam.ac.uk/ftp/users/djw3/tea.ps.

Id:
tea.h,v 1.5 2002/12/22 15:42:55 m Exp


Define Documentation

#define DELTA   0x9E3779B9
 

Magic value. (Golden number * 2^31).

#define ROUNDS   32
 

Number of rounds.

#define TEA_BLOCK_LEN   8
 

TEA block length.

#define TEA_KEY_LEN   16
 

TEA key size.


Function Documentation

void tea_dec iu32   v,
iu32   k
 

TEA decryption function.

This function decrypts v with k and returns the decrypted data in v.

Parameters:
v  Array of two long values containing the data block.
k  Array of four long values containing the key.

void tea_enc iu32   v,
iu32   k
 

TEA encryption function.

This function encrypts v with k and returns the encrypted data in v.

Parameters:
v  Array of two long values containing the data block.
k  Array of four long values containing the key.


Copyright 2002 by Matthias Bruestle. This is licensed under the GNU General Public License.