Main Page   Data Structures   File List   Data Fields   Globals   Related Pages  

crypt.h File Reference

Crypto declarations. More...

#include <config.h>
#include <sw.h>
#include <string.h>
#include <types.h>
#include <tea.h>

Go to the source code of this file.

Defines

#define CRYPT_ALGO_TEA   0
 Algorithm ID: TEA. More...

#define CRYPT_ALGO_SKIPJACK   1
 Algorithm ID: Skipjack. More...

#define CRYPT_ALGO_NEWDESSK   2
 Algorithm ID: NEWDES-SK. More...

#define CRYPT_KEY_LEN   TEA_KEY_LEN
 Length of key in octets. More...

#define CRYPT_BLOCK_LEN   TEA_BLOCK_LEN
 Length of cipher block in octets. More...

#define crypt_enc(v, k)   tea_enc((iu32*)(v),(iu32*)(k))
 Single block encryption function. More...

#define crypt_dec(v, k)   tea_dec((iu32*)(v),(iu32*)(k))
 Single block decryption function. More...


Detailed Description

Crypto declarations.

Id:
crypt.h,v 1.1 2003/03/30 12:42:21 m Exp


Define Documentation

#define CRYPT_ALGO_NEWDESSK   2
 

Algorithm ID: NEWDES-SK.

#define CRYPT_ALGO_SKIPJACK   1
 

Algorithm ID: Skipjack.

#define CRYPT_ALGO_TEA   0
 

Algorithm ID: TEA.

#define CRYPT_BLOCK_LEN   TEA_BLOCK_LEN
 

Length of cipher block in octets.

#define crypt_dec v,
     tea_dec((iu32*)(v),(iu32*)(k))
 

Single block decryption function.

#define crypt_enc v,
     tea_enc((iu32*)(v),(iu32*)(k))
 

Single block encryption function.

#define CRYPT_KEY_LEN   TEA_KEY_LEN
 

Length of key in octets.


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