]> git.ipfire.org Git - thirdparty/openssl.git/blame - crypto/evp/e_old.c
RSA padding Zeroization fixes
[thirdparty/openssl.git] / crypto / evp / e_old.c
CommitLineData
0f113f3e 1/*
62867571 2 * Copyright 2004-2016 The OpenSSL Project Authors. All Rights Reserved.
1c7a0e28 3 *
62867571
RS
4 * Licensed under the OpenSSL license (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
1c7a0e28
RL
8 */
9
98186eb4 10#include <openssl/opensslconf.h>
98186eb4 11#if OPENSSL_API_COMPAT >= 0x00908000L
effaf4de 12NON_EMPTY_TRANSLATION_UNIT
7771b6c5
GT
13#else
14
0f113f3e 15# include <openssl/evp.h>
1c7a0e28 16
0f113f3e
MC
17/*
18 * Define some deprecated functions, so older programs don't crash and burn
19 * too quickly. On Windows and VMS, these will never be used, since
20 * functions and variables in shared libraries are selected by entry point
21 * location, not by name.
22 */
1c7a0e28 23
0f113f3e
MC
24# ifndef OPENSSL_NO_BF
25# undef EVP_bf_cfb
b5855b2f 26const EVP_CIPHER *EVP_bf_cfb(void);
0f113f3e
MC
27const EVP_CIPHER *EVP_bf_cfb(void)
28{
29 return EVP_bf_cfb64();
30}
31# endif
1c7a0e28 32
0f113f3e
MC
33# ifndef OPENSSL_NO_DES
34# undef EVP_des_cfb
b5855b2f 35const EVP_CIPHER *EVP_des_cfb(void);
0f113f3e
MC
36const EVP_CIPHER *EVP_des_cfb(void)
37{
38 return EVP_des_cfb64();
39}
40
41# undef EVP_des_ede3_cfb
b5855b2f 42const EVP_CIPHER *EVP_des_ede3_cfb(void);
0f113f3e
MC
43const EVP_CIPHER *EVP_des_ede3_cfb(void)
44{
45 return EVP_des_ede3_cfb64();
46}
47
48# undef EVP_des_ede_cfb
b5855b2f 49const EVP_CIPHER *EVP_des_ede_cfb(void);
0f113f3e
MC
50const EVP_CIPHER *EVP_des_ede_cfb(void)
51{
52 return EVP_des_ede_cfb64();
53}
54# endif
1c7a0e28 55
0f113f3e
MC
56# ifndef OPENSSL_NO_IDEA
57# undef EVP_idea_cfb
b5855b2f 58const EVP_CIPHER *EVP_idea_cfb(void);
0f113f3e
MC
59const EVP_CIPHER *EVP_idea_cfb(void)
60{
61 return EVP_idea_cfb64();
62}
63# endif
1c7a0e28 64
0f113f3e
MC
65# ifndef OPENSSL_NO_RC2
66# undef EVP_rc2_cfb
b5855b2f 67const EVP_CIPHER *EVP_rc2_cfb(void);
0f113f3e
MC
68const EVP_CIPHER *EVP_rc2_cfb(void)
69{
70 return EVP_rc2_cfb64();
71}
72# endif
1c7a0e28 73
0f113f3e
MC
74# ifndef OPENSSL_NO_CAST
75# undef EVP_cast5_cfb
b5855b2f 76const EVP_CIPHER *EVP_cast5_cfb(void);
0f113f3e
MC
77const EVP_CIPHER *EVP_cast5_cfb(void)
78{
79 return EVP_cast5_cfb64();
80}
81# endif
1c7a0e28 82
0f113f3e
MC
83# ifndef OPENSSL_NO_RC5
84# undef EVP_rc5_32_12_16_cfb
b5855b2f 85const EVP_CIPHER *EVP_rc5_32_12_16_cfb(void);
0f113f3e
MC
86const EVP_CIPHER *EVP_rc5_32_12_16_cfb(void)
87{
88 return EVP_rc5_32_12_16_cfb64();
89}
90# endif
1c7a0e28 91
5158c763 92# undef EVP_aes_128_cfb
b5855b2f 93const EVP_CIPHER *EVP_aes_128_cfb(void);
0f113f3e
MC
94const EVP_CIPHER *EVP_aes_128_cfb(void)
95{
96 return EVP_aes_128_cfb128();
97}
98
5158c763 99# undef EVP_aes_192_cfb
b5855b2f 100const EVP_CIPHER *EVP_aes_192_cfb(void);
0f113f3e
MC
101const EVP_CIPHER *EVP_aes_192_cfb(void)
102{
103 return EVP_aes_192_cfb128();
104}
105
5158c763 106# undef EVP_aes_256_cfb
b5855b2f 107const EVP_CIPHER *EVP_aes_256_cfb(void);
0f113f3e
MC
108const EVP_CIPHER *EVP_aes_256_cfb(void)
109{
110 return EVP_aes_256_cfb128();
111}
7771b6c5
GT
112
113#endif