home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / N / TCPIP / NETKIT-B.05 / NETKIT-B / NetKit-B-0.05 / libtelnet / enc-proto.h,v < prev    next >
Encoding:
Text File  |  1994-05-23  |  5.0 KB  |  143 lines

  1. head    1.1;
  2. access;
  3. symbols;
  4. locks
  5.     rzsfl:1.1; strict;
  6. comment    @ * @;
  7.  
  8.  
  9. 1.1
  10. date    94.05.23.09.04.50;    author rzsfl;    state Exp;
  11. branches;
  12. next    ;
  13.  
  14.  
  15. desc
  16. @Original
  17. @
  18.  
  19.  
  20. 1.1
  21. log
  22. @Initial revision
  23. @
  24. text
  25. @/*-
  26.  * Copyright (c) 1991 The Regents of the University of California.
  27.  * All rights reserved.
  28.  *
  29.  * Redistribution and use in source and binary forms, with or without
  30.  * modification, are permitted provided that the following conditions
  31.  * are met:
  32.  * 1. Redistributions of source code must retain the above copyright
  33.  *    notice, this list of conditions and the following disclaimer.
  34.  * 2. Redistributions in binary form must reproduce the above copyright
  35.  *    notice, this list of conditions and the following disclaimer in the
  36.  *    documentation and/or other materials provided with the distribution.
  37.  * 3. All advertising materials mentioning features or use of this software
  38.  *    must display the following acknowledgement:
  39.  *    This product includes software developed by the University of
  40.  *    California, Berkeley and its contributors.
  41.  * 4. Neither the name of the University nor the names of its contributors
  42.  *    may be used to endorse or promote products derived from this software
  43.  *    without specific prior written permission.
  44.  *
  45.  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  46.  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  47.  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  48.  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  49.  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  50.  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  51.  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  52.  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  53.  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  54.  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  55.  * SUCH DAMAGE.
  56.  *
  57.  *    from: @@(#)enc-proto.h    5.2 (Berkeley) 3/22/91
  58.  *    $Id: enc-proto.h,v 1.2 1993/08/01 18:32:53 mycroft Exp $
  59.  */
  60.  
  61. /*
  62.  * Copyright (C) 1990 by the Massachusetts Institute of Technology
  63.  *
  64.  * Export of this software from the United States of America is assumed
  65.  * to require a specific license from the United States Government.
  66.  * It is the responsibility of any person or organization contemplating
  67.  * export to obtain such a license before exporting.
  68.  *
  69.  * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and
  70.  * distribute this software and its documentation for any purpose and
  71.  * without fee is hereby granted, provided that the above copyright
  72.  * notice appear in all copies and that both that copyright notice and
  73.  * this permission notice appear in supporting documentation, and that
  74.  * the name of M.I.T. not be used in advertising or publicity pertaining
  75.  * to distribution of the software without specific, written prior
  76.  * permission.  M.I.T. makes no representations about the suitability of
  77.  * this software for any purpose.  It is provided "as is" without express
  78.  * or implied warranty.
  79.  */
  80. #if    !defined(P)
  81. #ifdef    __STDC__
  82. #define    P(x)    x
  83. #else
  84. #define    P(x)    ()
  85. #endif
  86. #endif
  87.  
  88. #if    defined(ENCRYPT)
  89. void encrypt_init P((char *, int));
  90. Encryptions *findencryption P((int));
  91. void encrypt_send_supprt P((void));
  92. void encrypt_auto P((int));
  93. void decrypt_auto P((int));
  94. void encrypt_is P((unsigned char *, int));
  95. void encrypt_reply P((unsigned char *, int));
  96. void encrypt_start_input P((int));
  97. void encrypt_session_key P((Session_Key *, int));
  98. void encrypt_end_input P((void));
  99. void encrypt_start_output P((int));
  100. void encrypt_end_output P((void));
  101. void encrypt_send_request_start P((void));
  102. void encrypt_send_request_end P((void));
  103. void encrypt_send_end P((void));
  104. void encrypt_wait P((void));
  105. void encrypt_send_support P((void));
  106. void encrypt_send_keyid P((int, unsigned char *, int, int));
  107. int net_write P((unsigned char *, int));
  108.  
  109. #ifdef    TELENTD
  110. void encrypt_wait P((void));
  111. #else
  112. int encrypt_cmd P((int, char **));
  113. void encrypt_display P((void));
  114. #endif
  115.  
  116. void cfb64_encrypt P((unsigned char *, int));
  117. int cfb64_decrypt P((int));
  118. void cfb64_init P((int));
  119. int cfb64_start P((int, int));
  120. int cfb64_is P((unsigned char *, int));
  121. int cfb64_reply P((unsigned char *, int));
  122. void cfb64_session P((Session_Key *, int));
  123. int cfb64_keyid P((int, unsigned char *, int *));
  124. void cfb64_printsub P((unsigned char *, int, unsigned char *, int));
  125.  
  126. void ofb64_encrypt P((unsigned char *, int));
  127. int ofb64_decrypt P((int));
  128. void ofb64_init P((int));
  129. int ofb64_start P((int, int));
  130. int ofb64_is P((unsigned char *, int));
  131. int ofb64_reply P((unsigned char *, int));
  132. void ofb64_session P((Session_Key *, int));
  133. int ofb64_keyid P((int, unsigned char *, int *));
  134. void ofb64_printsub P((unsigned char *, int, unsigned char *, int));
  135.  
  136. int  des_new_random_key P((Block));
  137. void des_set_random_generator_seed P((Block));
  138. void des_key_sched P((Block, Schedule));
  139. void des_ecb_encrypt P((Block, Block, Schedule, int));
  140. int  des_string_to_key P((char *, Block));
  141. #endif
  142. @
  143.