Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/external/source/vncdll/winvnc/d3des.h
Views: 11777
/*1* This is D3DES (V5.09) by Richard Outerbridge with the double and2* triple-length support removed for use in VNC.3*4* These changes are5* Copyright (C) 1999 AT&T Laboratories Cambridge. All Rights Reserved.6*7* This software is distributed in the hope that it will be useful,8* but WITHOUT ANY WARRANTY; without even the implied warranty of9* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.10*/1112/* d3des.h -13*14* Headers and defines for d3des.c15* Graven Imagery, 1992.16*17* Copyright (c) 1988,1989,1990,1991,1992 by Richard Outerbridge18* (GEnie : OUTER; CIS : [71755,204])19*/2021#define EN0 0 /* MODE == encrypt */22#define DE1 1 /* MODE == decrypt */2324extern void deskey(unsigned char *, int);25/* hexkey[8] MODE26* Sets the internal key register according to the hexadecimal27* key contained in the 8 bytes of hexkey, according to the DES,28* for encryption or decryption according to MODE.29*/3031extern void usekey(unsigned long *);32/* cookedkey[32]33* Loads the internal key register with the data in cookedkey.34*/3536extern void cpkey(unsigned long *);37/* cookedkey[32]38* Copies the contents of the internal key register into the storage39* located at &cookedkey[0].40*/4142extern void des(unsigned char *, unsigned char *);43/* from[8] to[8]44* Encrypts/Decrypts (according to the key currently loaded in the45* internal key register) one block of eight bytes at address 'from'46* into the block at address 'to'. They can be the same.47*/4849/* d3des.h V5.09 rwo 9208.04 15:06 Graven Imagery50********************************************************************/515253