Main Page   Data Structures   File List   Data Fields   Globals   Related Pages  

tea.c File Reference

TEA functions. More...

#include <config.h>
#include <tea.h>
#include <tools.h>

Defines

#define TEA_SMALL
#define hton_ul(x, y)

Functions

iu32 tea_func (iu32 *in, iu32 *sum, iu32 *k)
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 functions.

Id:
tea.c,v 1.6 2003/04/02 23:57:54 m Exp


Define Documentation

#define hton_ul x,
 
 

#define TEA_SMALL
 


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.

iu32 tea_func iu32   in,
iu32   sum,
iu32   k
 


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