113e3f4d6SMark Murray /*- 213e3f4d6SMark Murray * Copyright (c) 1991, 1993 313e3f4d6SMark Murray * The Regents of the University of California. All rights reserved. 413e3f4d6SMark Murray * 513e3f4d6SMark Murray * Redistribution and use in source and binary forms, with or without 613e3f4d6SMark Murray * modification, are permitted provided that the following conditions 713e3f4d6SMark Murray * are met: 813e3f4d6SMark Murray * 1. Redistributions of source code must retain the above copyright 913e3f4d6SMark Murray * notice, this list of conditions and the following disclaimer. 1013e3f4d6SMark Murray * 2. Redistributions in binary form must reproduce the above copyright 1113e3f4d6SMark Murray * notice, this list of conditions and the following disclaimer in the 1213e3f4d6SMark Murray * documentation and/or other materials provided with the distribution. 1313e3f4d6SMark Murray * 3. All advertising materials mentioning features or use of this software 1413e3f4d6SMark Murray * must display the following acknowledgement: 1513e3f4d6SMark Murray * This product includes software developed by the University of 1613e3f4d6SMark Murray * California, Berkeley and its contributors. 1713e3f4d6SMark Murray * 4. Neither the name of the University nor the names of its contributors 1813e3f4d6SMark Murray * may be used to endorse or promote products derived from this software 1913e3f4d6SMark Murray * without specific prior written permission. 2013e3f4d6SMark Murray * 2113e3f4d6SMark Murray * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 2213e3f4d6SMark Murray * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2313e3f4d6SMark Murray * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2413e3f4d6SMark Murray * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2513e3f4d6SMark Murray * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2613e3f4d6SMark Murray * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2713e3f4d6SMark Murray * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2813e3f4d6SMark Murray * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2913e3f4d6SMark Murray * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 3013e3f4d6SMark Murray * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 3113e3f4d6SMark Murray * SUCH DAMAGE. 3213e3f4d6SMark Murray * 3313e3f4d6SMark Murray * @(#)enc-proto.h 8.1 (Berkeley) 6/4/93 3413e3f4d6SMark Murray * 3513e3f4d6SMark Murray * @(#)enc-proto.h 5.2 (Berkeley) 3/22/91 3613e3f4d6SMark Murray */ 3713e3f4d6SMark Murray 3813e3f4d6SMark Murray /* 3913e3f4d6SMark Murray * Copyright (C) 1990 by the Massachusetts Institute of Technology 4013e3f4d6SMark Murray * 4113e3f4d6SMark Murray * Export of this software from the United States of America is assumed 4213e3f4d6SMark Murray * to require a specific license from the United States Government. 4313e3f4d6SMark Murray * It is the responsibility of any person or organization contemplating 4413e3f4d6SMark Murray * export to obtain such a license before exporting. 4513e3f4d6SMark Murray * 4613e3f4d6SMark Murray * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and 4713e3f4d6SMark Murray * distribute this software and its documentation for any purpose and 4813e3f4d6SMark Murray * without fee is hereby granted, provided that the above copyright 4913e3f4d6SMark Murray * notice appear in all copies and that both that copyright notice and 5013e3f4d6SMark Murray * this permission notice appear in supporting documentation, and that 5113e3f4d6SMark Murray * the name of M.I.T. not be used in advertising or publicity pertaining 5213e3f4d6SMark Murray * to distribution of the software without specific, written prior 5313e3f4d6SMark Murray * permission. M.I.T. makes no representations about the suitability of 5413e3f4d6SMark Murray * this software for any purpose. It is provided "as is" without express 5513e3f4d6SMark Murray * or implied warranty. 5613e3f4d6SMark Murray */ 5713e3f4d6SMark Murray 58*ae771770SStanislav Sedov /* $Id$ */ 5913e3f4d6SMark Murray 6013e3f4d6SMark Murray #if defined(ENCRYPTION) 6113e3f4d6SMark Murray Encryptions *findencryption (int); 6213e3f4d6SMark Murray Encryptions *finddecryption(int); 6313e3f4d6SMark Murray int EncryptAutoDec(int); 6413e3f4d6SMark Murray int EncryptAutoEnc(int); 6513e3f4d6SMark Murray int EncryptDebug(int); 6613e3f4d6SMark Murray int EncryptDisable(char*, char*); 6713e3f4d6SMark Murray int EncryptEnable(char*, char*); 6813e3f4d6SMark Murray int EncryptStart(char*); 6913e3f4d6SMark Murray int EncryptStartInput(void); 7013e3f4d6SMark Murray int EncryptStartOutput(void); 7113e3f4d6SMark Murray int EncryptStatus(void); 7213e3f4d6SMark Murray int EncryptStop(char*); 7313e3f4d6SMark Murray int EncryptStopInput(void); 7413e3f4d6SMark Murray int EncryptStopOutput(void); 7513e3f4d6SMark Murray int EncryptType(char*, char*); 7613e3f4d6SMark Murray int EncryptVerbose(int); 7713e3f4d6SMark Murray void decrypt_auto(int); 7813e3f4d6SMark Murray void encrypt_auto(int); 7913e3f4d6SMark Murray void encrypt_debug(int); 8013e3f4d6SMark Murray void encrypt_dec_keyid(unsigned char*, int); 8113e3f4d6SMark Murray void encrypt_display(void); 8213e3f4d6SMark Murray void encrypt_enc_keyid(unsigned char*, int); 8313e3f4d6SMark Murray void encrypt_end(void); 84*ae771770SStanislav Sedov void encrypt_gen_printsub(unsigned char*, size_t, unsigned char*, size_t); 8513e3f4d6SMark Murray void encrypt_init(const char*, int); 8613e3f4d6SMark Murray void encrypt_is(unsigned char*, int); 8713e3f4d6SMark Murray void encrypt_list_types(void); 8813e3f4d6SMark Murray void encrypt_not(void); 89*ae771770SStanislav Sedov void encrypt_printsub(unsigned char*, size_t, unsigned char*, size_t); 9013e3f4d6SMark Murray void encrypt_reply(unsigned char*, int); 9113e3f4d6SMark Murray void encrypt_request_end(void); 9213e3f4d6SMark Murray void encrypt_request_start(unsigned char*, int); 9313e3f4d6SMark Murray void encrypt_send_end(void); 9413e3f4d6SMark Murray void encrypt_send_keyid(int, unsigned char*, int, int); 9513e3f4d6SMark Murray void encrypt_send_request_end(void); 964137ff4cSJacques Vidrine int encrypt_is_encrypting(void); 9713e3f4d6SMark Murray void encrypt_send_request_start(void); 9813e3f4d6SMark Murray void encrypt_send_support(void); 9913e3f4d6SMark Murray void encrypt_session_key(Session_Key*, int); 10013e3f4d6SMark Murray void encrypt_start(unsigned char*, int); 10113e3f4d6SMark Murray void encrypt_start_output(int); 10213e3f4d6SMark Murray void encrypt_support(unsigned char*, int); 10313e3f4d6SMark Murray void encrypt_verbose_quiet(int); 10413e3f4d6SMark Murray void encrypt_wait(void); 10513e3f4d6SMark Murray int encrypt_delay(void); 10613e3f4d6SMark Murray 10713e3f4d6SMark Murray #ifdef TELENTD 10813e3f4d6SMark Murray void encrypt_wait (void); 10913e3f4d6SMark Murray #else 11013e3f4d6SMark Murray void encrypt_display (void); 11113e3f4d6SMark Murray #endif 11213e3f4d6SMark Murray 11313e3f4d6SMark Murray void cfb64_encrypt (unsigned char *, int); 11413e3f4d6SMark Murray int cfb64_decrypt (int); 11513e3f4d6SMark Murray void cfb64_init (int); 11613e3f4d6SMark Murray int cfb64_start (int, int); 11713e3f4d6SMark Murray int cfb64_is (unsigned char *, int); 11813e3f4d6SMark Murray int cfb64_reply (unsigned char *, int); 11913e3f4d6SMark Murray void cfb64_session (Session_Key *, int); 12013e3f4d6SMark Murray int cfb64_keyid (int, unsigned char *, int *); 121*ae771770SStanislav Sedov void cfb64_printsub (unsigned char *, size_t, unsigned char *, size_t); 12213e3f4d6SMark Murray 12313e3f4d6SMark Murray void ofb64_encrypt (unsigned char *, int); 12413e3f4d6SMark Murray int ofb64_decrypt (int); 12513e3f4d6SMark Murray void ofb64_init (int); 12613e3f4d6SMark Murray int ofb64_start (int, int); 12713e3f4d6SMark Murray int ofb64_is (unsigned char *, int); 12813e3f4d6SMark Murray int ofb64_reply (unsigned char *, int); 12913e3f4d6SMark Murray void ofb64_session (Session_Key *, int); 13013e3f4d6SMark Murray int ofb64_keyid (int, unsigned char *, int *); 131*ae771770SStanislav Sedov void ofb64_printsub (unsigned char *, size_t, unsigned char *, size_t); 13213e3f4d6SMark Murray 13313e3f4d6SMark Murray #endif 134