e_old.c 2.3 KB

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