diff options
-rw-r--r-- | src/usr.bin/openssl/speed.c | 68 |
1 files changed, 34 insertions, 34 deletions
diff --git a/src/usr.bin/openssl/speed.c b/src/usr.bin/openssl/speed.c index 292fa28634..1657a43c02 100644 --- a/src/usr.bin/openssl/speed.c +++ b/src/usr.bin/openssl/speed.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: speed.c,v 1.15 2015/09/14 01:45:03 doug Exp $ */ | 1 | /* $OpenBSD: speed.c,v 1.16 2015/09/20 13:39:13 miod Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -164,7 +164,7 @@ pkey_print_message(const char *str, const char *str2, | |||
164 | static void print_result(int alg, int run_no, int count, double time_used); | 164 | static void print_result(int alg, int run_no, int count, double time_used); |
165 | static int do_multi(int multi); | 165 | static int do_multi(int multi); |
166 | 166 | ||
167 | #define ALGOR_NUM 33 | 167 | #define ALGOR_NUM 32 |
168 | #define SIZE_NUM 5 | 168 | #define SIZE_NUM 5 |
169 | #define RSA_NUM 4 | 169 | #define RSA_NUM 4 |
170 | #define DSA_NUM 3 | 170 | #define DSA_NUM 3 |
@@ -173,7 +173,7 @@ static int do_multi(int multi); | |||
173 | #define MAX_ECDH_SIZE 256 | 173 | #define MAX_ECDH_SIZE 256 |
174 | 174 | ||
175 | static const char *names[ALGOR_NUM] = { | 175 | static const char *names[ALGOR_NUM] = { |
176 | "md2", NULL /* was mdc2 */, "md4", "md5", "hmac(md5)", "sha1", "rmd160", | 176 | "md2", "md4", "md5", "hmac(md5)", "sha1", "rmd160", |
177 | "rc4", "des cbc", "des ede3", "idea cbc", "seed cbc", | 177 | "rc4", "des cbc", "des ede3", "idea cbc", "seed cbc", |
178 | "rc2 cbc", "rc5-32/12 cbc", "blowfish cbc", "cast cbc", | 178 | "rc2 cbc", "rc5-32/12 cbc", "blowfish cbc", "cast cbc", |
179 | "aes-128 cbc", "aes-192 cbc", "aes-256 cbc", | 179 | "aes-128 cbc", "aes-192 cbc", "aes-256 cbc", |
@@ -318,37 +318,37 @@ speed_main(int argc, char **argv) | |||
318 | CAMELLIA_KEY camellia_ks1, camellia_ks2, camellia_ks3; | 318 | CAMELLIA_KEY camellia_ks1, camellia_ks2, camellia_ks3; |
319 | #endif | 319 | #endif |
320 | #define D_MD2 0 | 320 | #define D_MD2 0 |
321 | #define D_MD4 2 | 321 | #define D_MD4 1 |
322 | #define D_MD5 3 | 322 | #define D_MD5 2 |
323 | #define D_HMAC 4 | 323 | #define D_HMAC 3 |
324 | #define D_SHA1 5 | 324 | #define D_SHA1 4 |
325 | #define D_RMD160 6 | 325 | #define D_RMD160 5 |
326 | #define D_RC4 7 | 326 | #define D_RC4 6 |
327 | #define D_CBC_DES 8 | 327 | #define D_CBC_DES 7 |
328 | #define D_EDE3_DES 9 | 328 | #define D_EDE3_DES 8 |
329 | #define D_CBC_IDEA 10 | 329 | #define D_CBC_IDEA 9 |
330 | #define D_CBC_SEED 11 | 330 | #define D_CBC_SEED 10 |
331 | #define D_CBC_RC2 12 | 331 | #define D_CBC_RC2 11 |
332 | #define D_CBC_RC5 13 | 332 | #define D_CBC_RC5 12 |
333 | #define D_CBC_BF 14 | 333 | #define D_CBC_BF 13 |
334 | #define D_CBC_CAST 15 | 334 | #define D_CBC_CAST 14 |
335 | #define D_CBC_128_AES 16 | 335 | #define D_CBC_128_AES 15 |
336 | #define D_CBC_192_AES 17 | 336 | #define D_CBC_192_AES 16 |
337 | #define D_CBC_256_AES 18 | 337 | #define D_CBC_256_AES 17 |
338 | #define D_CBC_128_CML 19 | 338 | #define D_CBC_128_CML 18 |
339 | #define D_CBC_192_CML 20 | 339 | #define D_CBC_192_CML 19 |
340 | #define D_CBC_256_CML 21 | 340 | #define D_CBC_256_CML 20 |
341 | #define D_EVP 22 | 341 | #define D_EVP 21 |
342 | #define D_SHA256 23 | 342 | #define D_SHA256 22 |
343 | #define D_SHA512 24 | 343 | #define D_SHA512 23 |
344 | #define D_WHIRLPOOL 25 | 344 | #define D_WHIRLPOOL 24 |
345 | #define D_IGE_128_AES 26 | 345 | #define D_IGE_128_AES 25 |
346 | #define D_IGE_192_AES 27 | 346 | #define D_IGE_192_AES 26 |
347 | #define D_IGE_256_AES 28 | 347 | #define D_IGE_256_AES 27 |
348 | #define D_GHASH 29 | 348 | #define D_GHASH 28 |
349 | #define D_AES_128_GCM 30 | 349 | #define D_AES_128_GCM 29 |
350 | #define D_AES_256_GCM 31 | 350 | #define D_AES_256_GCM 30 |
351 | #define D_CHACHA20_POLY1305 32 | 351 | #define D_CHACHA20_POLY1305 31 |
352 | double d = 0.0; | 352 | double d = 0.0; |
353 | long c[ALGOR_NUM][SIZE_NUM]; | 353 | long c[ALGOR_NUM][SIZE_NUM]; |
354 | #define R_DSA_512 0 | 354 | #define R_DSA_512 0 |