Deleted Added
full compact
des_crypt.h (55206) des_crypt.h (74462)
1/*
2 * @(#)des_crypt.h 2.1 88/08/11 4.0 RPCSRC; from 1.4 88/02/08 (C) 1986 SMI
1/*
2 * @(#)des_crypt.h 2.1 88/08/11 4.0 RPCSRC; from 1.4 88/02/08 (C) 1986 SMI
3 * $FreeBSD: head/include/rpc/des_crypt.h 55206 1999-12-29 05:07:58Z peter $
3 * $FreeBSD: head/include/rpc/des_crypt.h 74462 2001-03-19 12:50:13Z alfred $
4 *
5 * des_crypt.h, des library routine interface
6 * Copyright (C) 1986, Sun Microsystems, Inc.
7 */
8/*
9 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
10 * unrestricted use provided that this legend is included on all tape
11 * media and as a part of the software program in whole or part. Users

--- 16 unchanged lines hidden (view full) ---

28 * In no event will Sun Microsystems, Inc. be liable for any lost revenue
29 * or profits or other special, indirect and consequential damages, even if
30 * Sun has been advised of the possibility of such damages.
31 *
32 * Sun Microsystems, Inc.
33 * 2550 Garcia Avenue
34 * Mountain View, California 94043
35 */
4 *
5 * des_crypt.h, des library routine interface
6 * Copyright (C) 1986, Sun Microsystems, Inc.
7 */
8/*
9 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
10 * unrestricted use provided that this legend is included on all tape
11 * media and as a part of the software program in whole or part. Users

--- 16 unchanged lines hidden (view full) ---

28 * In no event will Sun Microsystems, Inc. be liable for any lost revenue
29 * or profits or other special, indirect and consequential damages, even if
30 * Sun has been advised of the possibility of such damages.
31 *
32 * Sun Microsystems, Inc.
33 * 2550 Garcia Avenue
34 * Mountain View, California 94043
35 */
36/*
37 * Copyright (c) 1986 - 1991 by Sun Microsystems, Inc.
38 */
36
39
40/*
41 * des_crypt.h, des library routine interface
42 */
43
44#ifndef _DES_DES_CRYPT_H
45#define _DES_DES_CRYPT_H
46
37#include <sys/cdefs.h>
38#include <rpc/rpc.h>
39
40#define DES_MAXDATA 8192 /* max bytes encrypted in one call */
41#define DES_DIRMASK (1 << 0)
42#define DES_ENCRYPT (0*DES_DIRMASK) /* Encrypt */
43#define DES_DECRYPT (1*DES_DIRMASK) /* Decrypt */
44

--- 25 unchanged lines hidden (view full) ---

70 * encrypted though, in software).
71 */
72
73
74/*
75 * Cipher Block Chaining mode
76 */
77__BEGIN_DECLS
47#include <sys/cdefs.h>
48#include <rpc/rpc.h>
49
50#define DES_MAXDATA 8192 /* max bytes encrypted in one call */
51#define DES_DIRMASK (1 << 0)
52#define DES_ENCRYPT (0*DES_DIRMASK) /* Encrypt */
53#define DES_DECRYPT (1*DES_DIRMASK) /* Decrypt */
54

--- 25 unchanged lines hidden (view full) ---

80 * encrypted though, in software).
81 */
82
83
84/*
85 * Cipher Block Chaining mode
86 */
87__BEGIN_DECLS
78#ifdef __STDC__
79int cbc_crypt __P(( char *, char *, unsigned int, unsigned int, char *));
88int cbc_crypt __P(( char *, char *, unsigned int, unsigned int, char *));
80#else
81cbc_crypt(/* key, buf, len, mode, ivec */); /*
82 char *key;
83 char *buf;
84 unsigned len;
85 unsigned mode;
86 char *ivec;
87*/
88#endif
89__END_DECLS
89
90/*
91 * Electronic Code Book mode
92 */
90
91/*
92 * Electronic Code Book mode
93 */
93#ifdef __STDC__
94__BEGIN_DECLS
94int ecb_crypt __P(( char *, char *, unsigned int, unsigned int ));
95int ecb_crypt __P(( char *, char *, unsigned int, unsigned int ));
95#else
96ecb_crypt(/* key, buf, len, mode */); /*
97 char *key;
98 char *buf;
99 unsigned len;
100 unsigned mode;
101*/
102#endif
103__END_DECLS
104
96__END_DECLS
97
105#ifndef _KERNEL
106/*
107 * Set des parity for a key.
108 * DES parity is odd and in the low bit of each byte
109 */
110__BEGIN_DECLS
98/*
99 * Set des parity for a key.
100 * DES parity is odd and in the low bit of each byte
101 */
102__BEGIN_DECLS
111#ifdef __STDC__
112void des_setparity __P(( char *));
103void des_setparity __P(( char *));
113#else
114void
115des_setparity(/* key */); /*
116 char *key;
117*/
118#endif
119__END_DECLS
104__END_DECLS
120#endif
105
106#endif /* _DES_DES_CRYPT_H */