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 |
|
---|
10 | #include <openssl/opensslconf.h>
|
---|
11 |
|
---|
12 | #include <openssl/evp.h>
|
---|
13 |
|
---|
14 | /*
|
---|
15 | * Define some deprecated functions, so older programs don't crash and burn
|
---|
16 | * too quickly. On Windows and VMS, these will never be used, since
|
---|
17 | * functions and variables in shared libraries are selected by entry point
|
---|
18 | * location, not by name.
|
---|
19 | */
|
---|
20 |
|
---|
21 | #ifndef OPENSSL_NO_BF
|
---|
22 | # undef EVP_bf_cfb
|
---|
23 | const EVP_CIPHER *EVP_bf_cfb(void);
|
---|
24 | const EVP_CIPHER *EVP_bf_cfb(void)
|
---|
25 | {
|
---|
26 | return EVP_bf_cfb64();
|
---|
27 | }
|
---|
28 | #endif
|
---|
29 |
|
---|
30 | #ifndef OPENSSL_NO_DES
|
---|
31 | # undef EVP_des_cfb
|
---|
32 | const EVP_CIPHER *EVP_des_cfb(void);
|
---|
33 | const EVP_CIPHER *EVP_des_cfb(void)
|
---|
34 | {
|
---|
35 | return EVP_des_cfb64();
|
---|
36 | }
|
---|
37 |
|
---|
38 | # undef EVP_des_ede3_cfb
|
---|
39 | const EVP_CIPHER *EVP_des_ede3_cfb(void);
|
---|
40 | const EVP_CIPHER *EVP_des_ede3_cfb(void)
|
---|
41 | {
|
---|
42 | return EVP_des_ede3_cfb64();
|
---|
43 | }
|
---|
44 |
|
---|
45 | # undef EVP_des_ede_cfb
|
---|
46 | const EVP_CIPHER *EVP_des_ede_cfb(void);
|
---|
47 | const EVP_CIPHER *EVP_des_ede_cfb(void)
|
---|
48 | {
|
---|
49 | return EVP_des_ede_cfb64();
|
---|
50 | }
|
---|
51 | #endif
|
---|
52 |
|
---|
53 | #ifndef OPENSSL_NO_IDEA
|
---|
54 | # undef EVP_idea_cfb
|
---|
55 | const EVP_CIPHER *EVP_idea_cfb(void);
|
---|
56 | const EVP_CIPHER *EVP_idea_cfb(void)
|
---|
57 | {
|
---|
58 | return EVP_idea_cfb64();
|
---|
59 | }
|
---|
60 | #endif
|
---|
61 |
|
---|
62 | #ifndef OPENSSL_NO_RC2
|
---|
63 | # undef EVP_rc2_cfb
|
---|
64 | const EVP_CIPHER *EVP_rc2_cfb(void);
|
---|
65 | const EVP_CIPHER *EVP_rc2_cfb(void)
|
---|
66 | {
|
---|
67 | return EVP_rc2_cfb64();
|
---|
68 | }
|
---|
69 | #endif
|
---|
70 |
|
---|
71 | #ifndef OPENSSL_NO_CAST
|
---|
72 | # undef EVP_cast5_cfb
|
---|
73 | const EVP_CIPHER *EVP_cast5_cfb(void);
|
---|
74 | const EVP_CIPHER *EVP_cast5_cfb(void)
|
---|
75 | {
|
---|
76 | return EVP_cast5_cfb64();
|
---|
77 | }
|
---|
78 | #endif
|
---|
79 |
|
---|
80 | #ifndef OPENSSL_NO_RC5
|
---|
81 | # undef EVP_rc5_32_12_16_cfb
|
---|
82 | const EVP_CIPHER *EVP_rc5_32_12_16_cfb(void);
|
---|
83 | const EVP_CIPHER *EVP_rc5_32_12_16_cfb(void)
|
---|
84 | {
|
---|
85 | return EVP_rc5_32_12_16_cfb64();
|
---|
86 | }
|
---|
87 | #endif
|
---|
88 |
|
---|
89 | #undef EVP_aes_128_cfb
|
---|
90 | const EVP_CIPHER *EVP_aes_128_cfb(void);
|
---|
91 | const EVP_CIPHER *EVP_aes_128_cfb(void)
|
---|
92 | {
|
---|
93 | return EVP_aes_128_cfb128();
|
---|
94 | }
|
---|
95 |
|
---|
96 | #undef EVP_aes_192_cfb
|
---|
97 | const EVP_CIPHER *EVP_aes_192_cfb(void);
|
---|
98 | const EVP_CIPHER *EVP_aes_192_cfb(void)
|
---|
99 | {
|
---|
100 | return EVP_aes_192_cfb128();
|
---|
101 | }
|
---|
102 |
|
---|
103 | #undef EVP_aes_256_cfb
|
---|
104 | const EVP_CIPHER *EVP_aes_256_cfb(void);
|
---|
105 | const EVP_CIPHER *EVP_aes_256_cfb(void)
|
---|
106 | {
|
---|
107 | return EVP_aes_256_cfb128();
|
---|
108 | }
|
---|