File:  [truecrypt] / truecrypt / crypto / idea.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:37:52 2018 UTC (8 years, 3 months ago) by root
Branches: drWhax, MAIN
CVS tags: v2_1, v2_0, v1_0a, v1_0, HEAD
1.0

#ifndef _IDEA_DEFINED

#define _IDEA_DEFINED

/* Defines for the PGP-style types used in IDEA.C */

#define word16	unsigned short int

/* IDEA algorithm constants */

#define IDEA_USERKEYSIZE	16
#define IDEA_BLOCKSIZE		8
#define IDEA_ROUNDS			8
#define IDEA_KEYLEN			( 6 * IDEA_ROUNDS + 4 )

/* Routines used to implement the IDEA encryption */

void _cdecl ideaExpandKey( unsigned char const *userkey, word16 *eKey, word16 *dKey );
void _cdecl ideaCrypt( unsigned char const *in, unsigned char *out, word16 const *key );

#endif /* _IDEA_DEFINED */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.