diff options
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libssl/src/apps/speed.c | 92 |
1 files changed, 47 insertions, 45 deletions
diff --git a/src/lib/libssl/src/apps/speed.c b/src/lib/libssl/src/apps/speed.c index 7271f3ba50..29a4b181db 100644 --- a/src/lib/libssl/src/apps/speed.c +++ b/src/lib/libssl/src/apps/speed.c | |||
@@ -83,32 +83,52 @@ | |||
83 | /* 11-Sep-92 Andrew Daviel Support for Silicon Graphics IRIX added */ | 83 | /* 11-Sep-92 Andrew Daviel Support for Silicon Graphics IRIX added */ |
84 | /* 06-Apr-92 Luke Brennan Support for VMS and add extra signal calls */ | 84 | /* 06-Apr-92 Luke Brennan Support for VMS and add extra signal calls */ |
85 | 85 | ||
86 | 86 | #include <math.h> | |
87 | #include <signal.h> | ||
87 | #include <stdio.h> | 88 | #include <stdio.h> |
88 | #include <stdlib.h> | 89 | #include <stdlib.h> |
89 | |||
90 | #include <string.h> | 90 | #include <string.h> |
91 | #include <math.h> | 91 | #include <unistd.h> |
92 | #include "apps.h" | 92 | |
93 | #include <openssl/bn.h> | ||
93 | #include <openssl/crypto.h> | 94 | #include <openssl/crypto.h> |
94 | #include <openssl/rand.h> | ||
95 | #include <openssl/err.h> | 95 | #include <openssl/err.h> |
96 | #include <openssl/evp.h> | 96 | #include <openssl/evp.h> |
97 | #include <openssl/objects.h> | 97 | #include <openssl/objects.h> |
98 | #include <unistd.h> | 98 | #include <openssl/modes.h> |
99 | 99 | #include <openssl/rand.h> | |
100 | #include <signal.h> | 100 | #include <openssl/x509.h> |
101 | 101 | ||
102 | #include <openssl/bn.h> | ||
103 | #ifndef OPENSSL_NO_DES | ||
104 | #include <openssl/des.h> | ||
105 | #endif | ||
106 | #ifndef OPENSSL_NO_AES | 102 | #ifndef OPENSSL_NO_AES |
107 | #include <openssl/aes.h> | 103 | #include <openssl/aes.h> |
108 | #endif | 104 | #endif |
105 | #ifndef OPENSSL_NO_BF | ||
106 | #include <openssl/blowfish.h> | ||
107 | #endif | ||
108 | #ifndef OPENSSL_NO_CAST | ||
109 | #include <openssl/cast.h> | ||
110 | #endif | ||
109 | #ifndef OPENSSL_NO_CAMELLIA | 111 | #ifndef OPENSSL_NO_CAMELLIA |
110 | #include <openssl/camellia.h> | 112 | #include <openssl/camellia.h> |
111 | #endif | 113 | #endif |
114 | #ifndef OPENSSL_NO_DES | ||
115 | #include <openssl/des.h> | ||
116 | #endif | ||
117 | #ifndef OPENSSL_NO_DSA | ||
118 | #include <openssl/dsa.h> | ||
119 | #endif | ||
120 | #ifndef OPENSSL_NO_ECDH | ||
121 | #include <openssl/ecdh.h> | ||
122 | #endif | ||
123 | #ifndef OPENSSL_NO_ECDSA | ||
124 | #include <openssl/ecdsa.h> | ||
125 | #endif | ||
126 | #ifndef OPENSSL_NO_HMAC | ||
127 | #include <openssl/hmac.h> | ||
128 | #endif | ||
129 | #ifndef OPENSSL_NO_IDEA | ||
130 | #include <openssl/idea.h> | ||
131 | #endif | ||
112 | #ifndef OPENSSL_NO_MD2 | 132 | #ifndef OPENSSL_NO_MD2 |
113 | #include <openssl/md2.h> | 133 | #include <openssl/md2.h> |
114 | #endif | 134 | #endif |
@@ -121,18 +141,8 @@ | |||
121 | #ifndef OPENSSL_NO_MD5 | 141 | #ifndef OPENSSL_NO_MD5 |
122 | #include <openssl/md5.h> | 142 | #include <openssl/md5.h> |
123 | #endif | 143 | #endif |
124 | #ifndef OPENSSL_NO_HMAC | 144 | #ifndef OPENSSL_NO_RC2 |
125 | #include <openssl/hmac.h> | 145 | #include <openssl/rc2.h> |
126 | #endif | ||
127 | #include <openssl/evp.h> | ||
128 | #ifndef OPENSSL_NO_SHA | ||
129 | #include <openssl/sha.h> | ||
130 | #endif | ||
131 | #ifndef OPENSSL_NO_RIPEMD | ||
132 | #include <openssl/ripemd.h> | ||
133 | #endif | ||
134 | #ifndef OPENSSL_NO_WHIRLPOOL | ||
135 | #include <openssl/whrlpool.h> | ||
136 | #endif | 146 | #endif |
137 | #ifndef OPENSSL_NO_RC4 | 147 | #ifndef OPENSSL_NO_RC4 |
138 | #include <openssl/rc4.h> | 148 | #include <openssl/rc4.h> |
@@ -140,38 +150,30 @@ | |||
140 | #ifndef OPENSSL_NO_RC5 | 150 | #ifndef OPENSSL_NO_RC5 |
141 | #include <openssl/rc5.h> | 151 | #include <openssl/rc5.h> |
142 | #endif | 152 | #endif |
143 | #ifndef OPENSSL_NO_RC2 | 153 | #ifndef OPENSSL_NO_RSA |
144 | #include <openssl/rc2.h> | 154 | #include <openssl/rsa.h> |
145 | #endif | 155 | #endif |
146 | #ifndef OPENSSL_NO_IDEA | 156 | #ifndef OPENSSL_NO_RIPEMD |
147 | #include <openssl/idea.h> | 157 | #include <openssl/ripemd.h> |
148 | #endif | 158 | #endif |
149 | #ifndef OPENSSL_NO_SEED | 159 | #ifndef OPENSSL_NO_SEED |
150 | #include <openssl/seed.h> | 160 | #include <openssl/seed.h> |
151 | #endif | 161 | #endif |
152 | #ifndef OPENSSL_NO_BF | 162 | #ifndef OPENSSL_NO_SHA |
153 | #include <openssl/blowfish.h> | 163 | #include <openssl/sha.h> |
154 | #endif | ||
155 | #ifndef OPENSSL_NO_CAST | ||
156 | #include <openssl/cast.h> | ||
157 | #endif | 164 | #endif |
158 | #ifndef OPENSSL_NO_RSA | 165 | #ifndef OPENSSL_NO_WHIRLPOOL |
159 | #include <openssl/rsa.h> | 166 | #include <openssl/whrlpool.h> |
160 | #include "./testrsa.h" | ||
161 | #endif | 167 | #endif |
162 | #include <openssl/x509.h> | 168 | |
169 | #include "apps.h" | ||
170 | |||
163 | #ifndef OPENSSL_NO_DSA | 171 | #ifndef OPENSSL_NO_DSA |
164 | #include <openssl/dsa.h> | ||
165 | #include "./testdsa.h" | 172 | #include "./testdsa.h" |
166 | #endif | 173 | #endif |
167 | #ifndef OPENSSL_NO_ECDSA | 174 | #ifndef OPENSSL_NO_RSA |
168 | #include <openssl/ecdsa.h> | 175 | #include "./testrsa.h" |
169 | #endif | ||
170 | #ifndef OPENSSL_NO_ECDH | ||
171 | #include <openssl/ecdh.h> | ||
172 | #endif | 176 | #endif |
173 | #include <openssl/modes.h> | ||
174 | |||
175 | 177 | ||
176 | #undef BUFSIZE | 178 | #undef BUFSIZE |
177 | #define BUFSIZE ((long)1024*8+1) | 179 | #define BUFSIZE ((long)1024*8+1) |