|
|
1.1 root 1: #ifndef _IDEA_DEFINED
2:
3: #define _IDEA_DEFINED
4:
5: /* Defines for the PGP-style types used in IDEA.C */
6:
7: #define word16 unsigned short int
8:
9: /* IDEA algorithm constants */
10:
11: #define IDEA_USERKEYSIZE 16
12: #define IDEA_BLOCKSIZE 8
13: #define IDEA_ROUNDS 8
14: #define IDEA_KEYLEN ( 6 * IDEA_ROUNDS + 4 )
15:
16: /* Routines used to implement the IDEA encryption */
17:
18: void _cdecl ideaExpandKey( unsigned char const *userkey, word16 *eKey, word16 *dKey );
19: void _cdecl ideaCrypt( unsigned char const *in, unsigned char *out, word16 const *key );
20:
21: #endif /* _IDEA_DEFINED */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.