ACPI: Add definitions for the SPCR table
[qemu/ar7.git] / ui / d3des.h
blob773667ee79aa6190d6bb975dd7f6584efb06cb73
1 /*
2 * This is D3DES (V5.09) by Richard Outerbridge with the double and
3 * triple-length support removed for use in VNC.
5 * These changes are:
6 * Copyright (C) 1999 AT&T Laboratories Cambridge. All Rights Reserved.
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.
12 #ifndef D3DES_H
13 #define D3DES_H 1
15 /* d3des.h -
17 * Headers and defines for d3des.c
18 * Graven Imagery, 1992.
20 * Copyright (c) 1988,1989,1990,1991,1992 by Richard Outerbridge
21 * (GEnie : OUTER; CIS : [71755,204])
24 #define EN0 0 /* MODE == encrypt */
25 #define DE1 1 /* MODE == decrypt */
27 void deskey(unsigned char *, int);
28 /* hexkey[8] MODE
29 * Sets the internal key register according to the hexadecimal
30 * key contained in the 8 bytes of hexkey, according to the DES,
31 * for encryption or decryption according to MODE.
34 void usekey(unsigned long *);
35 /* cookedkey[32]
36 * Loads the internal key register with the data in cookedkey.
39 void des(unsigned char *, unsigned char *);
40 /* from[8] to[8]
41 * Encrypts/Decrypts (according to the key currently loaded in the
42 * internal key register) one block of eight bytes at address 'from'
43 * into the block at address 'to'. They can be the same.
46 /* d3des.h V5.09 rwo 9208.04 15:06 Graven Imagery
47 ********************************************************************/
49 #endif