]>
Commit | Line | Data |
---|---|---|
6fd27407 TS |
1 | /* |
2 | * This is D3DES (V5.09) by Richard Outerbridge with the double and | |
3 | * triple-length support removed for use in VNC. | |
4 | * | |
5 | * These changes are: | |
6 | * Copyright (C) 1999 AT&T Laboratories Cambridge. All Rights Reserved. | |
7 | * | |
8 | * This software is distributed in the hope that it will be useful, | |
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
11 | */ | |
121d0712 MA |
12 | |
13 | #ifndef QCRYPTO_DESRFB_H | |
14 | #define QCRYPTO_DESRFB_H | |
6fd27407 TS |
15 | |
16 | /* d3des.h - | |
17 | * | |
18 | * Headers and defines for d3des.c | |
19 | * Graven Imagery, 1992. | |
20 | * | |
21 | * Copyright (c) 1988,1989,1990,1991,1992 by Richard Outerbridge | |
22 | * (GEnie : OUTER; CIS : [71755,204]) | |
23 | */ | |
24 | ||
25 | #define EN0 0 /* MODE == encrypt */ | |
26 | #define DE1 1 /* MODE == decrypt */ | |
27 | ||
64b85a8f | 28 | void deskey(unsigned char *, int); |
6fd27407 TS |
29 | /* hexkey[8] MODE |
30 | * Sets the internal key register according to the hexadecimal | |
31 | * key contained in the 8 bytes of hexkey, according to the DES, | |
32 | * for encryption or decryption according to MODE. | |
33 | */ | |
34 | ||
64b85a8f | 35 | void usekey(unsigned long *); |
6fd27407 TS |
36 | /* cookedkey[32] |
37 | * Loads the internal key register with the data in cookedkey. | |
38 | */ | |
39 | ||
64b85a8f | 40 | void des(unsigned char *, unsigned char *); |
6fd27407 TS |
41 | /* from[8] to[8] |
42 | * Encrypts/Decrypts (according to the key currently loaded in the | |
43 | * internal key register) one block of eight bytes at address 'from' | |
44 | * into the block at address 'to'. They can be the same. | |
45 | */ | |
46 | ||
47 | /* d3des.h V5.09 rwo 9208.04 15:06 Graven Imagery | |
48 | ********************************************************************/ | |
cb9c377f PB |
49 | |
50 | #endif |