/src/openssl/crypto/evp/e_old.c
Line | Count | Source (jump to first uncovered line) |
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 | 0 | { |
26 | 0 | return EVP_bf_cfb64(); |
27 | 0 | } |
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 | 0 | { |
35 | 0 | return EVP_des_cfb64(); |
36 | 0 | } |
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 | 0 | { |
42 | 0 | return EVP_des_ede3_cfb64(); |
43 | 0 | } |
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 | 0 | { |
49 | 0 | return EVP_des_ede_cfb64(); |
50 | 0 | } |
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 | 0 | { |
58 | 0 | return EVP_idea_cfb64(); |
59 | 0 | } |
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 | 0 | { |
67 | 0 | return EVP_rc2_cfb64(); |
68 | 0 | } |
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 | 0 | { |
76 | 0 | return EVP_cast5_cfb64(); |
77 | 0 | } |
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 | 0 | { |
93 | 0 | return EVP_aes_128_cfb128(); |
94 | 0 | } |
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 | 0 | { |
100 | 0 | return EVP_aes_192_cfb128(); |
101 | 0 | } |
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 | 0 | { |
107 | 0 | return EVP_aes_256_cfb128(); |
108 | 0 | } |