1193323Sed/* crypto/evp/e_old.c -*- mode:C; c-file-style: "eay" -*- */ 2193323Sed/* 3193323Sed * Written by Richard Levitte (richard@levitte.org) for the OpenSSL project 4193323Sed * 2004. 5193323Sed */ 6193323Sed/* ==================================================================== 7193323Sed * Copyright (c) 2004 The OpenSSL Project. All rights reserved. 8193323Sed * 9193323Sed * Redistribution and use in source and binary forms, with or without 10193323Sed * modification, are permitted provided that the following conditions 11193323Sed * are met: 12193323Sed * 13193323Sed * 1. Redistributions of source code must retain the above copyright 14193323Sed * notice, this list of conditions and the following disclaimer. 15193323Sed * 16193323Sed * 2. Redistributions in binary form must reproduce the above copyright 17193323Sed * notice, this list of conditions and the following disclaimer in 18193323Sed * the documentation and/or other materials provided with the 19234353Sdim * distribution. 20249423Sdim * 21249423Sdim * 3. All advertising materials mentioning features or use of this 22249423Sdim * software must display the following acknowledgment: 23193323Sed * "This product includes software developed by the OpenSSL Project 24193323Sed * for use in the OpenSSL Toolkit. (http://www.openssl.org/)" 25249423Sdim * 26249423Sdim * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to 27249423Sdim * endorse or promote products derived from this software without 28249423Sdim * prior written permission. For written permission, please contact 29194612Sed * openssl-core@openssl.org. 30249423Sdim * 31193323Sed * 5. Products derived from this software may not be called "OpenSSL" 32193323Sed * nor may "OpenSSL" appear in their names without prior written 33193323Sed * permission of the OpenSSL Project. 34193323Sed * 35208599Srdivacky * 6. Redistributions of any form whatsoever must retain the following 36198090Srdivacky * acknowledgment: 37193323Sed * "This product includes software developed by the OpenSSL Project 38226633Sdim * for use in the OpenSSL Toolkit (http://www.openssl.org/)" 39193323Sed * 40193323Sed * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY 41198090Srdivacky * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 42193323Sed * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 43193323Sed * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR 44193323Sed * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 45193323Sed * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 46249423Sdim * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 47249423Sdim * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 48249423Sdim * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 49249423Sdim * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 50193323Sed * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 51198090Srdivacky * OF THE POSSIBILITY OF SUCH DAMAGE. 52198090Srdivacky * ==================================================================== 53198090Srdivacky * 54203954Srdivacky * This product includes cryptographic software written by Eric Young 55203954Srdivacky * (eay@cryptsoft.com). This product includes software written by Tim 56203954Srdivacky * Hudson (tjh@cryptsoft.com). 57203954Srdivacky * 58203954Srdivacky */ 59203954Srdivacky 60203954Srdivacky#ifdef OPENSSL_NO_DEPRECATED 61221345Sdimstatic void *dummy = &dummy; 62221345Sdim#else 63234353Sdim 64234353Sdim# include <openssl/evp.h> 65221345Sdim 66249423Sdim/* 67249423Sdim * Define some deprecated functions, so older programs don't crash and burn 68221345Sdim * too quickly. On Windows and VMS, these will never be used, since 69198090Srdivacky * functions and variables in shared libraries are selected by entry point 70224145Sdim * location, not by name. 71249423Sdim */ 72193323Sed 73249423Sdim# ifndef OPENSSL_NO_BF 74249423Sdim# undef EVP_bf_cfb 75249423Sdimconst EVP_CIPHER *EVP_bf_cfb(void); 76249423Sdimconst EVP_CIPHER *EVP_bf_cfb(void) 77249423Sdim{ 78249423Sdim return EVP_bf_cfb64(); 79221345Sdim} 80221345Sdim# endif 81221345Sdim 82221345Sdim# ifndef OPENSSL_NO_DES 83221345Sdim# undef EVP_des_cfb 84199481Srdivackyconst EVP_CIPHER *EVP_des_cfb(void); 85199481Srdivackyconst EVP_CIPHER *EVP_des_cfb(void) 86199481Srdivacky{ 87199481Srdivacky return EVP_des_cfb64(); 88199481Srdivacky} 89199481Srdivacky 90249423Sdim# undef EVP_des_ede3_cfb 91234353Sdimconst EVP_CIPHER *EVP_des_ede3_cfb(void); 92234353Sdimconst EVP_CIPHER *EVP_des_ede3_cfb(void) 93193323Sed{ 94193323Sed return EVP_des_ede3_cfb64(); 95243830Sdim} 96243830Sdim 97249423Sdim# undef EVP_des_ede_cfb 98249423Sdimconst EVP_CIPHER *EVP_des_ede_cfb(void); 99193323Sedconst EVP_CIPHER *EVP_des_ede_cfb(void) 100193323Sed{ 101193323Sed return EVP_des_ede_cfb64(); 102193323Sed} 103193323Sed# endif 104193323Sed 105193323Sed# ifndef OPENSSL_NO_IDEA 106193323Sed# undef EVP_idea_cfb 107193323Sedconst EVP_CIPHER *EVP_idea_cfb(void); 108193323Sedconst EVP_CIPHER *EVP_idea_cfb(void) 109193323Sed{ 110193323Sed return EVP_idea_cfb64(); 111224145Sdim} 112249423Sdim# endif 113249423Sdim 114193323Sed# ifndef OPENSSL_NO_RC2 115193323Sed# undef EVP_rc2_cfb 116193323Sedconst EVP_CIPHER *EVP_rc2_cfb(void); 117193323Sedconst EVP_CIPHER *EVP_rc2_cfb(void) 118193323Sed{ 119193323Sed return EVP_rc2_cfb64(); 120193323Sed} 121193323Sed# endif 122199481Srdivacky 123199481Srdivacky# ifndef OPENSSL_NO_CAST 124221345Sdim# undef EVP_cast5_cfb 125199481Srdivackyconst EVP_CIPHER *EVP_cast5_cfb(void); 126218893Sdimconst EVP_CIPHER *EVP_cast5_cfb(void) 127218893Sdim{ 128218893Sdim return EVP_cast5_cfb64(); 129221345Sdim} 130199481Srdivacky# endif 131199481Srdivacky 132203954Srdivacky# ifndef OPENSSL_NO_RC5 133199481Srdivacky# undef EVP_rc5_32_12_16_cfb 134199481Srdivackyconst EVP_CIPHER *EVP_rc5_32_12_16_cfb(void); 135199481Srdivackyconst EVP_CIPHER *EVP_rc5_32_12_16_cfb(void) 136199481Srdivacky{ 137199481Srdivacky return EVP_rc5_32_12_16_cfb64(); 138203954Srdivacky} 139221345Sdim# endif 140199481Srdivacky 141221345Sdim# ifndef OPENSSL_NO_AES 142234353Sdim# undef EVP_aes_128_cfb 143234353Sdimconst EVP_CIPHER *EVP_aes_128_cfb(void); 144234353Sdimconst EVP_CIPHER *EVP_aes_128_cfb(void) 145234353Sdim{ 146234353Sdim return EVP_aes_128_cfb128(); 147234353Sdim} 148221345Sdim 149221345Sdim# undef EVP_aes_192_cfb 150221345Sdimconst EVP_CIPHER *EVP_aes_192_cfb(void); 151221345Sdimconst EVP_CIPHER *EVP_aes_192_cfb(void) 152221345Sdim{ 153221345Sdim return EVP_aes_192_cfb128(); 154221345Sdim} 155221345Sdim 156221345Sdim# undef EVP_aes_256_cfb 157221345Sdimconst EVP_CIPHER *EVP_aes_256_cfb(void); 158221345Sdimconst EVP_CIPHER *EVP_aes_256_cfb(void) 159221345Sdim{ 160221345Sdim return EVP_aes_256_cfb128(); 161221345Sdim} 162221345Sdim# endif 163221345Sdim 164249423Sdim#endif 165249423Sdim