4.4BSD snapshot (revision 8.1); add 1993 to copyright
[unix-history] / usr / src / lib / libtelnet / enc-proto.h
CommitLineData
8fd80d14 1/*-
8aa89157
KB
2 * Copyright (c) 1991, 1993
3 * The Regents of the University of California. All rights reserved.
8fd80d14
DB
4 *
5 * %sccs.include.redist.c%
6 *
8aa89157 7 * @(#)enc-proto.h 8.1 (Berkeley) %G%
8fd80d14
DB
8 */
9
10/*
11 * Copyright (C) 1990 by the Massachusetts Institute of Technology
12 *
13 * Export of this software from the United States of America is assumed
14 * to require a specific license from the United States Government.
15 * It is the responsibility of any person or organization contemplating
16 * export to obtain such a license before exporting.
17 *
18 * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and
19 * distribute this software and its documentation for any purpose and
20 * without fee is hereby granted, provided that the above copyright
21 * notice appear in all copies and that both that copyright notice and
22 * this permission notice appear in supporting documentation, and that
23 * the name of M.I.T. not be used in advertising or publicity pertaining
24 * to distribution of the software without specific, written prior
25 * permission. M.I.T. makes no representations about the suitability of
26 * this software for any purpose. It is provided "as is" without express
27 * or implied warranty.
28 */
29#if !defined(P)
30#ifdef __STDC__
31#define P(x) x
32#else
33#define P(x) ()
34#endif
35#endif
36
e0badf3e 37#ifdef ENCRYPTION
8fd80d14
DB
38void encrypt_init P((char *, int));
39Encryptions *findencryption P((int));
40void encrypt_send_supprt P((void));
b7c8f459
DB
41void encrypt_auto P((int));
42void decrypt_auto P((int));
8fd80d14
DB
43void encrypt_is P((unsigned char *, int));
44void encrypt_reply P((unsigned char *, int));
45void encrypt_start_input P((int));
46void encrypt_session_key P((Session_Key *, int));
47void encrypt_end_input P((void));
48void encrypt_start_output P((int));
49void encrypt_end_output P((void));
50void encrypt_send_request_start P((void));
51void encrypt_send_request_end P((void));
52void encrypt_send_end P((void));
53void encrypt_wait P((void));
54void encrypt_send_support P((void));
b7c8f459 55void encrypt_send_keyid P((int, unsigned char *, int, int));
8fd80d14
DB
56int net_write P((unsigned char *, int));
57
58#ifdef TELENTD
59void encrypt_wait P((void));
60#else
61int encrypt_cmd P((int, char **));
62void encrypt_display P((void));
63#endif
64
0e39a0bc
DB
65void krbdes_encrypt P((unsigned char *, int));
66int krbdes_decrypt P((int));
67int krbdes_is P((unsigned char *, int));
68int krbdes_reply P((unsigned char *, int));
69void krbdes_init P((int));
70int krbdes_start P((int, int));
71void krbdes_session P((Session_Key *, int));
72void krbdes_printsub P((unsigned char *, int, unsigned char *, int));
73
b7c8f459
DB
74void cfb64_encrypt P((unsigned char *, int));
75int cfb64_decrypt P((int));
76void cfb64_init P((int));
77int cfb64_start P((int, int));
78int cfb64_is P((unsigned char *, int));
79int cfb64_reply P((unsigned char *, int));
80void cfb64_session P((Session_Key *, int));
81int cfb64_keyid P((int, unsigned char *, int *));
82void cfb64_printsub P((unsigned char *, int, unsigned char *, int));
83
84void ofb64_encrypt P((unsigned char *, int));
85int ofb64_decrypt P((int));
86void ofb64_init P((int));
87int ofb64_start P((int, int));
88int ofb64_is P((unsigned char *, int));
89int ofb64_reply P((unsigned char *, int));
90void ofb64_session P((Session_Key *, int));
91int ofb64_keyid P((int, unsigned char *, int *));
92void ofb64_printsub P((unsigned char *, int, unsigned char *, int));
8fd80d14
DB
93
94int des_new_random_key P((Block));
95void des_set_random_generator_seed P((Block));
96void des_key_sched P((Block, Schedule));
97void des_ecb_encrypt P((Block, Block, Schedule, int));
98int des_string_to_key P((char *, Block));
e0badf3e 99#endif /* ENCRYPTION */