181cb6ddcSMark Murray /*- 281cb6ddcSMark Murray * Copyright (c) 1991, 1993 381cb6ddcSMark Murray * The Regents of the University of California. All rights reserved. 481cb6ddcSMark Murray * 581cb6ddcSMark Murray * Redistribution and use in source and binary forms, with or without 681cb6ddcSMark Murray * modification, are permitted provided that the following conditions 781cb6ddcSMark Murray * are met: 881cb6ddcSMark Murray * 1. Redistributions of source code must retain the above copyright 981cb6ddcSMark Murray * notice, this list of conditions and the following disclaimer. 1081cb6ddcSMark Murray * 2. Redistributions in binary form must reproduce the above copyright 1181cb6ddcSMark Murray * notice, this list of conditions and the following disclaimer in the 1281cb6ddcSMark Murray * documentation and/or other materials provided with the distribution. 13*83129c0bSEd Maste * 3. Neither the name of the University nor the names of its contributors 1481cb6ddcSMark Murray * may be used to endorse or promote products derived from this software 1581cb6ddcSMark Murray * without specific prior written permission. 1681cb6ddcSMark Murray * 1781cb6ddcSMark Murray * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1881cb6ddcSMark Murray * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1981cb6ddcSMark Murray * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2081cb6ddcSMark Murray * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2181cb6ddcSMark Murray * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2281cb6ddcSMark Murray * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2381cb6ddcSMark Murray * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2481cb6ddcSMark Murray * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2581cb6ddcSMark Murray * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2681cb6ddcSMark Murray * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2781cb6ddcSMark Murray * SUCH DAMAGE. 2881cb6ddcSMark Murray * 2981cb6ddcSMark Murray * @(#)enc-proto.h 8.1 (Berkeley) 6/4/93 30ecece7e3SPeter Wemm * $FreeBSD$ 3181cb6ddcSMark Murray */ 3281cb6ddcSMark Murray 3381cb6ddcSMark Murray /* 3481cb6ddcSMark Murray * Copyright (C) 1990 by the Massachusetts Institute of Technology 3581cb6ddcSMark Murray * 3681cb6ddcSMark Murray * Export of this software from the United States of America is assumed 3781cb6ddcSMark Murray * to require a specific license from the United States Government. 3881cb6ddcSMark Murray * It is the responsibility of any person or organization contemplating 3981cb6ddcSMark Murray * export to obtain such a license before exporting. 4081cb6ddcSMark Murray * 4181cb6ddcSMark Murray * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and 4281cb6ddcSMark Murray * distribute this software and its documentation for any purpose and 4381cb6ddcSMark Murray * without fee is hereby granted, provided that the above copyright 4481cb6ddcSMark Murray * notice appear in all copies and that both that copyright notice and 4581cb6ddcSMark Murray * this permission notice appear in supporting documentation, and that 4681cb6ddcSMark Murray * the name of M.I.T. not be used in advertising or publicity pertaining 4781cb6ddcSMark Murray * to distribution of the software without specific, written prior 4881cb6ddcSMark Murray * permission. M.I.T. makes no representations about the suitability of 4981cb6ddcSMark Murray * this software for any purpose. It is provided "as is" without express 5081cb6ddcSMark Murray * or implied warranty. 5181cb6ddcSMark Murray */ 5281cb6ddcSMark Murray 5381cb6ddcSMark Murray #ifdef ENCRYPTION 548fa113e5SMark Murray void encrypt_init(const char *, int); 558fa113e5SMark Murray Encryptions *findencryption(int); 568fa113e5SMark Murray void encrypt_send_supprt(void); 578fa113e5SMark Murray void encrypt_auto(int); 588fa113e5SMark Murray void decrypt_auto(int); 598fa113e5SMark Murray void encrypt_is(unsigned char *, int); 608fa113e5SMark Murray void encrypt_reply(unsigned char *, int); 618fa113e5SMark Murray void encrypt_start_input(int); 628fa113e5SMark Murray void encrypt_session_key(Session_Key *, int); 638fa113e5SMark Murray void encrypt_end_input(void); 648fa113e5SMark Murray void encrypt_start_output(int); 658fa113e5SMark Murray void encrypt_end_output(void); 668fa113e5SMark Murray void encrypt_send_request_start(void); 678fa113e5SMark Murray void encrypt_send_request_end(void); 688fa113e5SMark Murray void encrypt_send_end(void); 698fa113e5SMark Murray void encrypt_wait(void); 708fa113e5SMark Murray void encrypt_send_support(void); 718fa113e5SMark Murray void encrypt_send_keyid(int, const char *, int, int); 728fa113e5SMark Murray void encrypt_start(unsigned char *, int); 738fa113e5SMark Murray void encrypt_end(void); 748fa113e5SMark Murray void encrypt_support(unsigned char *, int); 758fa113e5SMark Murray void encrypt_request_start(unsigned char *, int); 768fa113e5SMark Murray void encrypt_request_end(void); 778fa113e5SMark Murray void encrypt_enc_keyid(unsigned char *, int); 788fa113e5SMark Murray void encrypt_dec_keyid(unsigned char *, int); 798fa113e5SMark Murray void encrypt_printsub(unsigned char *, int, unsigned char *, int); 808fa113e5SMark Murray void encrypt_gen_printsub(unsigned char *, int, unsigned char *, int); 818fa113e5SMark Murray void encrypt_display(void); 8281cb6ddcSMark Murray 838fa113e5SMark Murray void fb64_printsub(unsigned char *, int, unsigned char *, int, const char *); 8481cb6ddcSMark Murray 858fa113e5SMark Murray int EncryptEnable(char *, char *); 868fa113e5SMark Murray int EncryptDisable(char *, char *); 878fa113e5SMark Murray int EncryptStatus(void); 888fa113e5SMark Murray int EncryptDebug(int); 898fa113e5SMark Murray int EncryptVerbose(int); 908fa113e5SMark Murray int EncryptAutoEnc(int); 918fa113e5SMark Murray int EncryptAutoDec(int); 9281cb6ddcSMark Murray 938fa113e5SMark Murray void krbdes_encrypt(unsigned char *, int); 948fa113e5SMark Murray int krbdes_decrypt(int); 958fa113e5SMark Murray int krbdes_is(unsigned char *, int); 968fa113e5SMark Murray int krbdes_reply(unsigned char *, int); 978fa113e5SMark Murray void krbdes_init(int); 988fa113e5SMark Murray int krbdes_start(int, int); 998fa113e5SMark Murray void krbdes_session(Session_Key *, int); 1008fa113e5SMark Murray void krbdes_printsub(unsigned char *, int, unsigned char *, int); 10181cb6ddcSMark Murray 1028fa113e5SMark Murray void cfb64_encrypt(unsigned char *, int); 1038fa113e5SMark Murray int cfb64_decrypt(int); 1048fa113e5SMark Murray void cfb64_init(int); 1058fa113e5SMark Murray int cfb64_start(int, int); 1068fa113e5SMark Murray int cfb64_is(unsigned char *, int); 1078fa113e5SMark Murray int cfb64_reply(unsigned char *, int); 1088fa113e5SMark Murray void cfb64_session(Session_Key *, int); 1098fa113e5SMark Murray int cfb64_keyid(int, unsigned char *, int *); 1108fa113e5SMark Murray void cfb64_printsub(unsigned char *, int, unsigned char *, int); 1118fa113e5SMark Murray 1128fa113e5SMark Murray void ofb64_encrypt(unsigned char *, int); 1138fa113e5SMark Murray int ofb64_decrypt(int); 1148fa113e5SMark Murray void ofb64_init(int); 1158fa113e5SMark Murray int ofb64_start(int, int); 1168fa113e5SMark Murray int ofb64_is(unsigned char *, int); 1178fa113e5SMark Murray int ofb64_reply(unsigned char *, int); 1188fa113e5SMark Murray void ofb64_session(Session_Key *, int); 1198fa113e5SMark Murray int ofb64_keyid(int, unsigned char *, int *); 1208fa113e5SMark Murray void ofb64_printsub(unsigned char *, int, unsigned char *, int); 12181cb6ddcSMark Murray 12281cb6ddcSMark Murray #endif /* ENCRYPTION */ 123