Path: blob/main/crypto/heimdal/appl/telnet/libtelnet/enc-proto.h
34879 views
/*-1* Copyright (c) 1991, 19932* The Regents of the University of California. All rights reserved.3*4* Redistribution and use in source and binary forms, with or without5* modification, are permitted provided that the following conditions6* are met:7* 1. Redistributions of source code must retain the above copyright8* notice, this list of conditions and the following disclaimer.9* 2. Redistributions in binary form must reproduce the above copyright10* notice, this list of conditions and the following disclaimer in the11* documentation and/or other materials provided with the distribution.12* 3. All advertising materials mentioning features or use of this software13* must display the following acknowledgement:14* This product includes software developed by the University of15* California, Berkeley and its contributors.16* 4. Neither the name of the University nor the names of its contributors17* may be used to endorse or promote products derived from this software18* without specific prior written permission.19*20* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND21* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE22* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE23* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE24* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL25* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS26* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)27* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT28* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY29* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF30* SUCH DAMAGE.31*32* @(#)enc-proto.h 8.1 (Berkeley) 6/4/9333*34* @(#)enc-proto.h 5.2 (Berkeley) 3/22/9135*/3637/*38* Copyright (C) 1990 by the Massachusetts Institute of Technology39*40* Export of this software from the United States of America is assumed41* to require a specific license from the United States Government.42* It is the responsibility of any person or organization contemplating43* export to obtain such a license before exporting.44*45* WITHIN THAT CONSTRAINT, permission to use, copy, modify, and46* distribute this software and its documentation for any purpose and47* without fee is hereby granted, provided that the above copyright48* notice appear in all copies and that both that copyright notice and49* this permission notice appear in supporting documentation, and that50* the name of M.I.T. not be used in advertising or publicity pertaining51* to distribution of the software without specific, written prior52* permission. M.I.T. makes no representations about the suitability of53* this software for any purpose. It is provided "as is" without express54* or implied warranty.55*/5657/* $Id$ */5859#if defined(ENCRYPTION)60Encryptions *findencryption (int);61Encryptions *finddecryption(int);62int EncryptAutoDec(int);63int EncryptAutoEnc(int);64int EncryptDebug(int);65int EncryptDisable(char*, char*);66int EncryptEnable(char*, char*);67int EncryptStart(char*);68int EncryptStartInput(void);69int EncryptStartOutput(void);70int EncryptStatus(void);71int EncryptStop(char*);72int EncryptStopInput(void);73int EncryptStopOutput(void);74int EncryptType(char*, char*);75int EncryptVerbose(int);76void decrypt_auto(int);77void encrypt_auto(int);78void encrypt_debug(int);79void encrypt_dec_keyid(unsigned char*, int);80void encrypt_display(void);81void encrypt_enc_keyid(unsigned char*, int);82void encrypt_end(void);83void encrypt_gen_printsub(unsigned char*, size_t, unsigned char*, size_t);84void encrypt_init(const char*, int);85void encrypt_is(unsigned char*, int);86void encrypt_list_types(void);87void encrypt_not(void);88void encrypt_printsub(unsigned char*, size_t, unsigned char*, size_t);89void encrypt_reply(unsigned char*, int);90void encrypt_request_end(void);91void encrypt_request_start(unsigned char*, int);92void encrypt_send_end(void);93void encrypt_send_keyid(int, unsigned char*, int, int);94void encrypt_send_request_end(void);95int encrypt_is_encrypting(void);96void encrypt_send_request_start(void);97void encrypt_send_support(void);98void encrypt_session_key(Session_Key*, int);99void encrypt_start(unsigned char*, int);100void encrypt_start_output(int);101void encrypt_support(unsigned char*, int);102void encrypt_verbose_quiet(int);103void encrypt_wait(void);104int encrypt_delay(void);105106#ifdef TELENTD107void encrypt_wait (void);108#else109void encrypt_display (void);110#endif111112void cfb64_encrypt (unsigned char *, int);113int cfb64_decrypt (int);114void cfb64_init (int);115int cfb64_start (int, int);116int cfb64_is (unsigned char *, int);117int cfb64_reply (unsigned char *, int);118void cfb64_session (Session_Key *, int);119int cfb64_keyid (int, unsigned char *, int *);120void cfb64_printsub (unsigned char *, size_t, unsigned char *, size_t);121122void ofb64_encrypt (unsigned char *, int);123int ofb64_decrypt (int);124void ofb64_init (int);125int ofb64_start (int, int);126int ofb64_is (unsigned char *, int);127int ofb64_reply (unsigned char *, int);128void ofb64_session (Session_Key *, int);129int ofb64_keyid (int, unsigned char *, int *);130void ofb64_printsub (unsigned char *, size_t, unsigned char *, size_t);131132#endif133134135