crypt.h
./mud++0.26/src/win32/crypt.h · 1.6 KB
From the archive mud++0.26f.tar.gz
Download the archive « Back to the archive contents
/*
* UFC-crypt: ultra fast crypt(3) implementation
*
* Copyright (C) 1991, 1992, Michael Glad, email: glad@daimi.aau.dk
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* @(#)crypt_util.c 2.29 01/23/92
*
* Header file for adding to your project
*
crypt.h
added for WIN32 port by jwo@netcom.com
*/
#ifdef __cplusplus
extern "C" {
#endif
/*
* UNIX crypt function
*/
char *crypt(char *,const char *);
/*
* To make fcrypt users happy.
* They don't need to call init_des.
*/
char *fcrypt(char *,char *);
/*
* Initialize unit - may be invoked directly
* by fcrypt users.
*/
void init_des();
/*
* UNIX encrypt function. Takes a bitvector
* represented by one byte per bit and
* encrypt/decrypt according to edflag
*/
void encrypt(char *, int );
/*
* UNIX setkey function. Take a 64 bit DES
* key and setup the machinery.
*/
void setkey(char *);
#ifdef __cplusplus
}
#endif