1e1051a39Sopenharmony_ci/* 2e1051a39Sopenharmony_ci * Copyright 2004-2020 The OpenSSL Project Authors. All Rights Reserved. 3e1051a39Sopenharmony_ci * 4e1051a39Sopenharmony_ci * Licensed under the Apache License 2.0 (the "License"). You may not use 5e1051a39Sopenharmony_ci * this file except in compliance with the License. You can obtain a copy 6e1051a39Sopenharmony_ci * in the file LICENSE in the source distribution or at 7e1051a39Sopenharmony_ci * https://www.openssl.org/source/license.html 8e1051a39Sopenharmony_ci */ 9e1051a39Sopenharmony_ci 10e1051a39Sopenharmony_ci#include <openssl/opensslconf.h> 11e1051a39Sopenharmony_ci 12e1051a39Sopenharmony_ci#include <openssl/evp.h> 13e1051a39Sopenharmony_ci 14e1051a39Sopenharmony_ci/* 15e1051a39Sopenharmony_ci * Define some deprecated functions, so older programs don't crash and burn 16e1051a39Sopenharmony_ci * too quickly. On Windows and VMS, these will never be used, since 17e1051a39Sopenharmony_ci * functions and variables in shared libraries are selected by entry point 18e1051a39Sopenharmony_ci * location, not by name. 19e1051a39Sopenharmony_ci */ 20e1051a39Sopenharmony_ci 21e1051a39Sopenharmony_ci#ifndef OPENSSL_NO_BF 22e1051a39Sopenharmony_ci# undef EVP_bf_cfb 23e1051a39Sopenharmony_ciconst EVP_CIPHER *EVP_bf_cfb(void); 24e1051a39Sopenharmony_ciconst EVP_CIPHER *EVP_bf_cfb(void) 25e1051a39Sopenharmony_ci{ 26e1051a39Sopenharmony_ci return EVP_bf_cfb64(); 27e1051a39Sopenharmony_ci} 28e1051a39Sopenharmony_ci#endif 29e1051a39Sopenharmony_ci 30e1051a39Sopenharmony_ci#ifndef OPENSSL_NO_DES 31e1051a39Sopenharmony_ci# undef EVP_des_cfb 32e1051a39Sopenharmony_ciconst EVP_CIPHER *EVP_des_cfb(void); 33e1051a39Sopenharmony_ciconst EVP_CIPHER *EVP_des_cfb(void) 34e1051a39Sopenharmony_ci{ 35e1051a39Sopenharmony_ci return EVP_des_cfb64(); 36e1051a39Sopenharmony_ci} 37e1051a39Sopenharmony_ci 38e1051a39Sopenharmony_ci# undef EVP_des_ede3_cfb 39e1051a39Sopenharmony_ciconst EVP_CIPHER *EVP_des_ede3_cfb(void); 40e1051a39Sopenharmony_ciconst EVP_CIPHER *EVP_des_ede3_cfb(void) 41e1051a39Sopenharmony_ci{ 42e1051a39Sopenharmony_ci return EVP_des_ede3_cfb64(); 43e1051a39Sopenharmony_ci} 44e1051a39Sopenharmony_ci 45e1051a39Sopenharmony_ci# undef EVP_des_ede_cfb 46e1051a39Sopenharmony_ciconst EVP_CIPHER *EVP_des_ede_cfb(void); 47e1051a39Sopenharmony_ciconst EVP_CIPHER *EVP_des_ede_cfb(void) 48e1051a39Sopenharmony_ci{ 49e1051a39Sopenharmony_ci return EVP_des_ede_cfb64(); 50e1051a39Sopenharmony_ci} 51e1051a39Sopenharmony_ci#endif 52e1051a39Sopenharmony_ci 53e1051a39Sopenharmony_ci#ifndef OPENSSL_NO_IDEA 54e1051a39Sopenharmony_ci# undef EVP_idea_cfb 55e1051a39Sopenharmony_ciconst EVP_CIPHER *EVP_idea_cfb(void); 56e1051a39Sopenharmony_ciconst EVP_CIPHER *EVP_idea_cfb(void) 57e1051a39Sopenharmony_ci{ 58e1051a39Sopenharmony_ci return EVP_idea_cfb64(); 59e1051a39Sopenharmony_ci} 60e1051a39Sopenharmony_ci#endif 61e1051a39Sopenharmony_ci 62e1051a39Sopenharmony_ci#ifndef OPENSSL_NO_RC2 63e1051a39Sopenharmony_ci# undef EVP_rc2_cfb 64e1051a39Sopenharmony_ciconst EVP_CIPHER *EVP_rc2_cfb(void); 65e1051a39Sopenharmony_ciconst EVP_CIPHER *EVP_rc2_cfb(void) 66e1051a39Sopenharmony_ci{ 67e1051a39Sopenharmony_ci return EVP_rc2_cfb64(); 68e1051a39Sopenharmony_ci} 69e1051a39Sopenharmony_ci#endif 70e1051a39Sopenharmony_ci 71e1051a39Sopenharmony_ci#ifndef OPENSSL_NO_CAST 72e1051a39Sopenharmony_ci# undef EVP_cast5_cfb 73e1051a39Sopenharmony_ciconst EVP_CIPHER *EVP_cast5_cfb(void); 74e1051a39Sopenharmony_ciconst EVP_CIPHER *EVP_cast5_cfb(void) 75e1051a39Sopenharmony_ci{ 76e1051a39Sopenharmony_ci return EVP_cast5_cfb64(); 77e1051a39Sopenharmony_ci} 78e1051a39Sopenharmony_ci#endif 79e1051a39Sopenharmony_ci 80e1051a39Sopenharmony_ci#ifndef OPENSSL_NO_RC5 81e1051a39Sopenharmony_ci# undef EVP_rc5_32_12_16_cfb 82e1051a39Sopenharmony_ciconst EVP_CIPHER *EVP_rc5_32_12_16_cfb(void); 83e1051a39Sopenharmony_ciconst EVP_CIPHER *EVP_rc5_32_12_16_cfb(void) 84e1051a39Sopenharmony_ci{ 85e1051a39Sopenharmony_ci return EVP_rc5_32_12_16_cfb64(); 86e1051a39Sopenharmony_ci} 87e1051a39Sopenharmony_ci#endif 88e1051a39Sopenharmony_ci 89e1051a39Sopenharmony_ci#undef EVP_aes_128_cfb 90e1051a39Sopenharmony_ciconst EVP_CIPHER *EVP_aes_128_cfb(void); 91e1051a39Sopenharmony_ciconst EVP_CIPHER *EVP_aes_128_cfb(void) 92e1051a39Sopenharmony_ci{ 93e1051a39Sopenharmony_ci return EVP_aes_128_cfb128(); 94e1051a39Sopenharmony_ci} 95e1051a39Sopenharmony_ci 96e1051a39Sopenharmony_ci#undef EVP_aes_192_cfb 97e1051a39Sopenharmony_ciconst EVP_CIPHER *EVP_aes_192_cfb(void); 98e1051a39Sopenharmony_ciconst EVP_CIPHER *EVP_aes_192_cfb(void) 99e1051a39Sopenharmony_ci{ 100e1051a39Sopenharmony_ci return EVP_aes_192_cfb128(); 101e1051a39Sopenharmony_ci} 102e1051a39Sopenharmony_ci 103e1051a39Sopenharmony_ci#undef EVP_aes_256_cfb 104e1051a39Sopenharmony_ciconst EVP_CIPHER *EVP_aes_256_cfb(void); 105e1051a39Sopenharmony_ciconst EVP_CIPHER *EVP_aes_256_cfb(void) 106e1051a39Sopenharmony_ci{ 107e1051a39Sopenharmony_ci return EVP_aes_256_cfb128(); 108e1051a39Sopenharmony_ci} 109