157416Smarkm/*- 257416Smarkm * Copyright (c) 1991, 1993 357416Smarkm * The Regents of the University of California. All rights reserved. 457416Smarkm * 557416Smarkm * Redistribution and use in source and binary forms, with or without 657416Smarkm * modification, are permitted provided that the following conditions 757416Smarkm * are met: 857416Smarkm * 1. Redistributions of source code must retain the above copyright 957416Smarkm * notice, this list of conditions and the following disclaimer. 1057416Smarkm * 2. Redistributions in binary form must reproduce the above copyright 1157416Smarkm * notice, this list of conditions and the following disclaimer in the 1257416Smarkm * documentation and/or other materials provided with the distribution. 1357416Smarkm * 3. All advertising materials mentioning features or use of this software 1457416Smarkm * must display the following acknowledgement: 1557416Smarkm * This product includes software developed by the University of 1657416Smarkm * California, Berkeley and its contributors. 1757416Smarkm * 4. Neither the name of the University nor the names of its contributors 1857416Smarkm * may be used to endorse or promote products derived from this software 1957416Smarkm * without specific prior written permission. 2057416Smarkm * 2157416Smarkm * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 2257416Smarkm * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2357416Smarkm * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2457416Smarkm * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2557416Smarkm * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2657416Smarkm * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2757416Smarkm * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2857416Smarkm * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2957416Smarkm * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 3057416Smarkm * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 3157416Smarkm * SUCH DAMAGE. 3257416Smarkm * 3357416Smarkm * @(#)enc-proto.h 8.1 (Berkeley) 6/4/93 3457416Smarkm * 3557416Smarkm * @(#)enc-proto.h 5.2 (Berkeley) 3/22/91 3657416Smarkm */ 3757416Smarkm 3857416Smarkm/* 3957416Smarkm * Copyright (C) 1990 by the Massachusetts Institute of Technology 4057416Smarkm * 4157416Smarkm * Export of this software from the United States of America is assumed 4257416Smarkm * to require a specific license from the United States Government. 4357416Smarkm * It is the responsibility of any person or organization contemplating 4457416Smarkm * export to obtain such a license before exporting. 4557416Smarkm * 4657416Smarkm * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and 4757416Smarkm * distribute this software and its documentation for any purpose and 4857416Smarkm * without fee is hereby granted, provided that the above copyright 4957416Smarkm * notice appear in all copies and that both that copyright notice and 5057416Smarkm * this permission notice appear in supporting documentation, and that 5157416Smarkm * the name of M.I.T. not be used in advertising or publicity pertaining 5257416Smarkm * to distribution of the software without specific, written prior 5357416Smarkm * permission. M.I.T. makes no representations about the suitability of 5457416Smarkm * this software for any purpose. It is provided "as is" without express 5557416Smarkm * or implied warranty. 5657416Smarkm */ 5757416Smarkm 58233294Sstas/* $Id$ */ 5957416Smarkm 6057416Smarkm#if defined(ENCRYPTION) 6157416SmarkmEncryptions *findencryption (int); 6257416SmarkmEncryptions *finddecryption(int); 6357416Smarkmint EncryptAutoDec(int); 6457416Smarkmint EncryptAutoEnc(int); 6557416Smarkmint EncryptDebug(int); 6657416Smarkmint EncryptDisable(char*, char*); 6757416Smarkmint EncryptEnable(char*, char*); 6857416Smarkmint EncryptStart(char*); 6957416Smarkmint EncryptStartInput(void); 7057416Smarkmint EncryptStartOutput(void); 7157416Smarkmint EncryptStatus(void); 7257416Smarkmint EncryptStop(char*); 7357416Smarkmint EncryptStopInput(void); 7457416Smarkmint EncryptStopOutput(void); 7557416Smarkmint EncryptType(char*, char*); 7657416Smarkmint EncryptVerbose(int); 7757416Smarkmvoid decrypt_auto(int); 7857416Smarkmvoid encrypt_auto(int); 7957416Smarkmvoid encrypt_debug(int); 8057416Smarkmvoid encrypt_dec_keyid(unsigned char*, int); 8157416Smarkmvoid encrypt_display(void); 8257416Smarkmvoid encrypt_enc_keyid(unsigned char*, int); 8357416Smarkmvoid encrypt_end(void); 84233294Sstasvoid encrypt_gen_printsub(unsigned char*, size_t, unsigned char*, size_t); 8557416Smarkmvoid encrypt_init(const char*, int); 8657416Smarkmvoid encrypt_is(unsigned char*, int); 8757416Smarkmvoid encrypt_list_types(void); 8857416Smarkmvoid encrypt_not(void); 89233294Sstasvoid encrypt_printsub(unsigned char*, size_t, unsigned char*, size_t); 9057416Smarkmvoid encrypt_reply(unsigned char*, int); 9157416Smarkmvoid encrypt_request_end(void); 9257416Smarkmvoid encrypt_request_start(unsigned char*, int); 9357416Smarkmvoid encrypt_send_end(void); 9457416Smarkmvoid encrypt_send_keyid(int, unsigned char*, int, int); 9557416Smarkmvoid encrypt_send_request_end(void); 9690926Snectarint encrypt_is_encrypting(void); 9757416Smarkmvoid encrypt_send_request_start(void); 9857416Smarkmvoid encrypt_send_support(void); 9957416Smarkmvoid encrypt_session_key(Session_Key*, int); 10057416Smarkmvoid encrypt_start(unsigned char*, int); 10157416Smarkmvoid encrypt_start_output(int); 10257416Smarkmvoid encrypt_support(unsigned char*, int); 10357416Smarkmvoid encrypt_verbose_quiet(int); 10457416Smarkmvoid encrypt_wait(void); 10557416Smarkmint encrypt_delay(void); 10657416Smarkm 10757416Smarkm#ifdef TELENTD 10857416Smarkmvoid encrypt_wait (void); 10957416Smarkm#else 11057416Smarkmvoid encrypt_display (void); 11157416Smarkm#endif 11257416Smarkm 11357416Smarkmvoid cfb64_encrypt (unsigned char *, int); 11457416Smarkmint cfb64_decrypt (int); 11557416Smarkmvoid cfb64_init (int); 11657416Smarkmint cfb64_start (int, int); 11757416Smarkmint cfb64_is (unsigned char *, int); 11857416Smarkmint cfb64_reply (unsigned char *, int); 11957416Smarkmvoid cfb64_session (Session_Key *, int); 12057416Smarkmint cfb64_keyid (int, unsigned char *, int *); 121233294Sstasvoid cfb64_printsub (unsigned char *, size_t, unsigned char *, size_t); 12257416Smarkm 12357416Smarkmvoid ofb64_encrypt (unsigned char *, int); 12457416Smarkmint ofb64_decrypt (int); 12557416Smarkmvoid ofb64_init (int); 12657416Smarkmint ofb64_start (int, int); 12757416Smarkmint ofb64_is (unsigned char *, int); 12857416Smarkmint ofb64_reply (unsigned char *, int); 12957416Smarkmvoid ofb64_session (Session_Key *, int); 13057416Smarkmint ofb64_keyid (int, unsigned char *, int *); 131233294Sstasvoid ofb64_printsub (unsigned char *, size_t, unsigned char *, size_t); 13257416Smarkm 13357416Smarkm#endif 134