1/*- 2 * Copyright (c) 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 16 unchanged lines hidden (view full) --- 25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * |
33 * $FreeBSD: head/contrib/telnet/libtelnet/enc_des.c 81965 2001-08-20 12:28:40Z markm $ |
34 */ 35 36#ifndef lint 37static const char sccsid[] = "@(#)enc_des.c 8.3 (Berkeley) 5/30/95"; 38#endif /* not lint */ 39 40#ifdef ENCRYPTION 41# ifdef AUTHENTICATION --- 5 unchanged lines hidden (view full) --- 47#endif 48 49#include <openssl/des.h> 50#include <string.h> 51#include "encrypt.h" 52#include "key-proto.h" 53#include "misc-proto.h" 54 |
55extern int encrypt_debug_mode; 56void des_set_random_generator_seed(des_cblock *); /* XXX */ |
57 58#define CFB 0 59#define OFB 1 60 61#define NO_SEND_IV 1 62#define NO_RECV_IV 2 63#define NO_KEYID 4 64#define IN_PROGRESS (NO_SEND_IV|NO_RECV_IV|NO_KEYID) --- 659 unchanged lines hidden --- |