ocbc_enc.c revision 1.1
1132720Skan/* crypto/des/cbc_enc.c */ 2132720Skan/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 3169691Skan * All rights reserved. 4132720Skan * 5132720Skan * This package is an SSL implementation written 6132720Skan * by Eric Young (eay@cryptsoft.com). 7132720Skan * The implementation was written so as to conform with Netscapes SSL. 8132720Skan * 9132720Skan * This library is free for commercial and non-commercial use as long as 10132720Skan * the following conditions are aheared to. The following conditions 11132720Skan * apply to all code found in this distribution, be it the RC4, RSA, 12132720Skan * lhash, DES, etc., code; not just the SSL code. The SSL documentation 13132720Skan * included with this distribution is covered by the same copyright terms 14132720Skan * except that the holder is Tim Hudson (tjh@cryptsoft.com). 15132720Skan * 16132720Skan * Copyright remains Eric Young's, and as such any Copyright notices in 17132720Skan * the code are not to be removed. 18132720Skan * If this package is used in a product, Eric Young should be given attribution 19169691Skan * as the author of the parts of the library used. 20132720Skan * This can be in the form of a textual message at program startup or 21132720Skan * in documentation (online or textual) provided with the package. 22132720Skan * 23132720Skan * Redistribution and use in source and binary forms, with or without 24132720Skan * modification, are permitted provided that the following conditions 25132720Skan * are met: 26132720Skan * 1. Redistributions of source code must retain the copyright 27132720Skan * notice, this list of conditions and the following disclaimer. 28132720Skan * 2. Redistributions in binary form must reproduce the above copyright 29132720Skan * notice, this list of conditions and the following disclaimer in the 30132720Skan * documentation and/or other materials provided with the distribution. 31169691Skan * 3. All advertising materials mentioning features or use of this software 32169691Skan * must display the following acknowledgement: 33169691Skan * "This product includes cryptographic software written by 34169691Skan * Eric Young (eay@cryptsoft.com)" 35132720Skan * The word 'cryptographic' can be left out if the rouines from the library 36132720Skan * being used are not cryptographic related :-). 37132720Skan * 4. If you include any Windows specific code (or a derivative thereof) from 38132720Skan * the apps directory (application code) you must include an acknowledgement: 39132720Skan * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" 40132720Skan * 41132720Skan * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND 42169691Skan * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 43132720Skan * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 44169691Skan * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 45169691Skan * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 46132720Skan * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 47132720Skan * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 48132720Skan * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 49132720Skan * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 50132720Skan * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 51132720Skan * SUCH DAMAGE. 52132720Skan * 53132720Skan * The licence and distribution terms for any publically available version or 54132720Skan * derivative of this code cannot be changed. i.e. this code cannot simply be 55132720Skan * copied and put under another distribution licence 56132720Skan * [including the GNU Public Licence.] 57132720Skan */ 58132720Skan 59132720Skan#define CBC_ENC_C__DONT_UPDATE_IV 60132720Skan 61132720Skan#include "oncbc_enc.c" /* des_cbc_encrypt */ 62169691Skan