1142425Snectar/* crypto/evp/e_old.c -*- mode:C; c-file-style: "eay" -*- */ 2296341Sdelphij/* 3296341Sdelphij * Written by Richard Levitte (richard@levitte.org) for the OpenSSL project 4296341Sdelphij * 2004. 5142425Snectar */ 6142425Snectar/* ==================================================================== 7142425Snectar * Copyright (c) 2004 The OpenSSL Project. All rights reserved. 8142425Snectar * 9142425Snectar * Redistribution and use in source and binary forms, with or without 10142425Snectar * modification, are permitted provided that the following conditions 11142425Snectar * are met: 12142425Snectar * 13142425Snectar * 1. Redistributions of source code must retain the above copyright 14296341Sdelphij * notice, this list of conditions and the following disclaimer. 15142425Snectar * 16142425Snectar * 2. Redistributions in binary form must reproduce the above copyright 17142425Snectar * notice, this list of conditions and the following disclaimer in 18142425Snectar * the documentation and/or other materials provided with the 19142425Snectar * distribution. 20142425Snectar * 21142425Snectar * 3. All advertising materials mentioning features or use of this 22142425Snectar * software must display the following acknowledgment: 23142425Snectar * "This product includes software developed by the OpenSSL Project 24142425Snectar * for use in the OpenSSL Toolkit. (http://www.openssl.org/)" 25142425Snectar * 26142425Snectar * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to 27142425Snectar * endorse or promote products derived from this software without 28142425Snectar * prior written permission. For written permission, please contact 29142425Snectar * openssl-core@openssl.org. 30142425Snectar * 31142425Snectar * 5. Products derived from this software may not be called "OpenSSL" 32142425Snectar * nor may "OpenSSL" appear in their names without prior written 33142425Snectar * permission of the OpenSSL Project. 34142425Snectar * 35142425Snectar * 6. Redistributions of any form whatsoever must retain the following 36142425Snectar * acknowledgment: 37142425Snectar * "This product includes software developed by the OpenSSL Project 38142425Snectar * for use in the OpenSSL Toolkit (http://www.openssl.org/)" 39142425Snectar * 40142425Snectar * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY 41142425Snectar * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 42142425Snectar * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 43142425Snectar * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR 44142425Snectar * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 45142425Snectar * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 46142425Snectar * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 47142425Snectar * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 48142425Snectar * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 49142425Snectar * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 50142425Snectar * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 51142425Snectar * OF THE POSSIBILITY OF SUCH DAMAGE. 52142425Snectar * ==================================================================== 53142425Snectar * 54142425Snectar * This product includes cryptographic software written by Eric Young 55142425Snectar * (eay@cryptsoft.com). This product includes software written by Tim 56142425Snectar * Hudson (tjh@cryptsoft.com). 57142425Snectar * 58142425Snectar */ 59142425Snectar 60160814Ssimon#ifdef OPENSSL_NO_DEPRECATED 61160814Ssimonstatic void *dummy = &dummy; 62160814Ssimon#else 63160814Ssimon 64296341Sdelphij# include <openssl/evp.h> 65142425Snectar 66296341Sdelphij/* 67296341Sdelphij * Define some deprecated functions, so older programs don't crash and burn 68296341Sdelphij * too quickly. On Windows and VMS, these will never be used, since 69296341Sdelphij * functions and variables in shared libraries are selected by entry point 70296341Sdelphij * location, not by name. 71296341Sdelphij */ 72142425Snectar 73296341Sdelphij# ifndef OPENSSL_NO_BF 74296341Sdelphij# undef EVP_bf_cfb 75160814Ssimonconst EVP_CIPHER *EVP_bf_cfb(void); 76296341Sdelphijconst EVP_CIPHER *EVP_bf_cfb(void) 77296341Sdelphij{ 78296341Sdelphij return EVP_bf_cfb64(); 79296341Sdelphij} 80296341Sdelphij# endif 81142425Snectar 82296341Sdelphij# ifndef OPENSSL_NO_DES 83296341Sdelphij# undef EVP_des_cfb 84160814Ssimonconst EVP_CIPHER *EVP_des_cfb(void); 85296341Sdelphijconst EVP_CIPHER *EVP_des_cfb(void) 86296341Sdelphij{ 87296341Sdelphij return EVP_des_cfb64(); 88296341Sdelphij} 89296341Sdelphij 90296341Sdelphij# undef EVP_des_ede3_cfb 91160814Ssimonconst EVP_CIPHER *EVP_des_ede3_cfb(void); 92296341Sdelphijconst EVP_CIPHER *EVP_des_ede3_cfb(void) 93296341Sdelphij{ 94296341Sdelphij return EVP_des_ede3_cfb64(); 95296341Sdelphij} 96296341Sdelphij 97296341Sdelphij# undef EVP_des_ede_cfb 98160814Ssimonconst EVP_CIPHER *EVP_des_ede_cfb(void); 99296341Sdelphijconst EVP_CIPHER *EVP_des_ede_cfb(void) 100296341Sdelphij{ 101296341Sdelphij return EVP_des_ede_cfb64(); 102296341Sdelphij} 103296341Sdelphij# endif 104142425Snectar 105296341Sdelphij# ifndef OPENSSL_NO_IDEA 106296341Sdelphij# undef EVP_idea_cfb 107160814Ssimonconst EVP_CIPHER *EVP_idea_cfb(void); 108296341Sdelphijconst EVP_CIPHER *EVP_idea_cfb(void) 109296341Sdelphij{ 110296341Sdelphij return EVP_idea_cfb64(); 111296341Sdelphij} 112296341Sdelphij# endif 113142425Snectar 114296341Sdelphij# ifndef OPENSSL_NO_RC2 115296341Sdelphij# undef EVP_rc2_cfb 116160814Ssimonconst EVP_CIPHER *EVP_rc2_cfb(void); 117296341Sdelphijconst EVP_CIPHER *EVP_rc2_cfb(void) 118296341Sdelphij{ 119296341Sdelphij return EVP_rc2_cfb64(); 120296341Sdelphij} 121296341Sdelphij# endif 122142425Snectar 123296341Sdelphij# ifndef OPENSSL_NO_CAST 124296341Sdelphij# undef EVP_cast5_cfb 125160814Ssimonconst EVP_CIPHER *EVP_cast5_cfb(void); 126296341Sdelphijconst EVP_CIPHER *EVP_cast5_cfb(void) 127296341Sdelphij{ 128296341Sdelphij return EVP_cast5_cfb64(); 129296341Sdelphij} 130296341Sdelphij# endif 131142425Snectar 132296341Sdelphij# ifndef OPENSSL_NO_RC5 133296341Sdelphij# undef EVP_rc5_32_12_16_cfb 134160814Ssimonconst EVP_CIPHER *EVP_rc5_32_12_16_cfb(void); 135296341Sdelphijconst EVP_CIPHER *EVP_rc5_32_12_16_cfb(void) 136296341Sdelphij{ 137296341Sdelphij return EVP_rc5_32_12_16_cfb64(); 138296341Sdelphij} 139296341Sdelphij# endif 140142425Snectar 141296341Sdelphij# ifndef OPENSSL_NO_AES 142296341Sdelphij# undef EVP_aes_128_cfb 143160814Ssimonconst EVP_CIPHER *EVP_aes_128_cfb(void); 144296341Sdelphijconst EVP_CIPHER *EVP_aes_128_cfb(void) 145296341Sdelphij{ 146296341Sdelphij return EVP_aes_128_cfb128(); 147296341Sdelphij} 148296341Sdelphij 149296341Sdelphij# undef EVP_aes_192_cfb 150160814Ssimonconst EVP_CIPHER *EVP_aes_192_cfb(void); 151296341Sdelphijconst EVP_CIPHER *EVP_aes_192_cfb(void) 152296341Sdelphij{ 153296341Sdelphij return EVP_aes_192_cfb128(); 154296341Sdelphij} 155296341Sdelphij 156296341Sdelphij# undef EVP_aes_256_cfb 157160814Ssimonconst EVP_CIPHER *EVP_aes_256_cfb(void); 158296341Sdelphijconst EVP_CIPHER *EVP_aes_256_cfb(void) 159296341Sdelphij{ 160296341Sdelphij return EVP_aes_256_cfb128(); 161296341Sdelphij} 162296341Sdelphij# endif 163160814Ssimon 164160814Ssimon#endif 165