diff options
Diffstat (limited to 'include/rpc/des_crypt.h')
-rw-r--r-- | include/rpc/des_crypt.h | 42 |
1 files changed, 14 insertions, 28 deletions
diff --git a/include/rpc/des_crypt.h b/include/rpc/des_crypt.h index c223cd1..ce6c1bf 100644 --- a/include/rpc/des_crypt.h +++ b/include/rpc/des_crypt.h @@ -33,6 +33,16 @@ * 2550 Garcia Avenue * Mountain View, California 94043 */ +/* + * Copyright (c) 1986 - 1991 by Sun Microsystems, Inc. + */ + +/* + * des_crypt.h, des library routine interface + */ + +#ifndef _DES_DES_CRYPT_H +#define _DES_DES_CRYPT_H #include <sys/cdefs.h> #include <rpc/rpc.h> @@ -75,46 +85,22 @@ * Cipher Block Chaining mode */ __BEGIN_DECLS -#ifdef __STDC__ int cbc_crypt __P(( char *, char *, unsigned int, unsigned int, char *)); -#else -cbc_crypt(/* key, buf, len, mode, ivec */); /* - char *key; - char *buf; - unsigned len; - unsigned mode; - char *ivec; -*/ -#endif +__END_DECLS /* * Electronic Code Book mode */ -#ifdef __STDC__ +__BEGIN_DECLS int ecb_crypt __P(( char *, char *, unsigned int, unsigned int )); -#else -ecb_crypt(/* key, buf, len, mode */); /* - char *key; - char *buf; - unsigned len; - unsigned mode; -*/ -#endif __END_DECLS -#ifndef _KERNEL /* * Set des parity for a key. * DES parity is odd and in the low bit of each byte */ __BEGIN_DECLS -#ifdef __STDC__ void des_setparity __P(( char *)); -#else -void -des_setparity(/* key */); /* - char *key; -*/ -#endif __END_DECLS -#endif + +#endif /* _DES_DES_CRYPT_H */ |