diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2015-09-20 13:39:14 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2015-09-20 13:39:14 +0000 |
commit | 0c29ef255efa9f7f234cf52b68678b1afff3cf48 (patch) | |
tree | bd7d275b3408b089313ccfb11e6b784d6637888c /usr.bin | |
parent | a053c063bf751267d596f91058075da8f5f651ec (diff) |
Pack the algorithm numbers, to avoid printing a useless (null) 0 0 0 0
line in the summary.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/openssl/speed.c | 68 |
1 files changed, 34 insertions, 34 deletions
diff --git a/usr.bin/openssl/speed.c b/usr.bin/openssl/speed.c index 292fa286349..1657a43c029 100644 --- a/usr.bin/openssl/speed.c +++ b/usr.bin/openssl/speed.c @@ -1,4 +1,4 @@ -/* $OpenBSD: speed.c,v 1.15 2015/09/14 01:45:03 doug Exp $ */ +/* $OpenBSD: speed.c,v 1.16 2015/09/20 13:39:13 miod Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -164,7 +164,7 @@ pkey_print_message(const char *str, const char *str2, static void print_result(int alg, int run_no, int count, double time_used); static int do_multi(int multi); -#define ALGOR_NUM 33 +#define ALGOR_NUM 32 #define SIZE_NUM 5 #define RSA_NUM 4 #define DSA_NUM 3 @@ -173,7 +173,7 @@ static int do_multi(int multi); #define MAX_ECDH_SIZE 256 static const char *names[ALGOR_NUM] = { - "md2", NULL /* was mdc2 */, "md4", "md5", "hmac(md5)", "sha1", "rmd160", + "md2", "md4", "md5", "hmac(md5)", "sha1", "rmd160", "rc4", "des cbc", "des ede3", "idea cbc", "seed cbc", "rc2 cbc", "rc5-32/12 cbc", "blowfish cbc", "cast cbc", "aes-128 cbc", "aes-192 cbc", "aes-256 cbc", @@ -318,37 +318,37 @@ speed_main(int argc, char **argv) CAMELLIA_KEY camellia_ks1, camellia_ks2, camellia_ks3; #endif #define D_MD2 0 -#define D_MD4 2 -#define D_MD5 3 -#define D_HMAC 4 -#define D_SHA1 5 -#define D_RMD160 6 -#define D_RC4 7 -#define D_CBC_DES 8 -#define D_EDE3_DES 9 -#define D_CBC_IDEA 10 -#define D_CBC_SEED 11 -#define D_CBC_RC2 12 -#define D_CBC_RC5 13 -#define D_CBC_BF 14 -#define D_CBC_CAST 15 -#define D_CBC_128_AES 16 -#define D_CBC_192_AES 17 -#define D_CBC_256_AES 18 -#define D_CBC_128_CML 19 -#define D_CBC_192_CML 20 -#define D_CBC_256_CML 21 -#define D_EVP 22 -#define D_SHA256 23 -#define D_SHA512 24 -#define D_WHIRLPOOL 25 -#define D_IGE_128_AES 26 -#define D_IGE_192_AES 27 -#define D_IGE_256_AES 28 -#define D_GHASH 29 -#define D_AES_128_GCM 30 -#define D_AES_256_GCM 31 -#define D_CHACHA20_POLY1305 32 +#define D_MD4 1 +#define D_MD5 2 +#define D_HMAC 3 +#define D_SHA1 4 +#define D_RMD160 5 +#define D_RC4 6 +#define D_CBC_DES 7 +#define D_EDE3_DES 8 +#define D_CBC_IDEA 9 +#define D_CBC_SEED 10 +#define D_CBC_RC2 11 +#define D_CBC_RC5 12 +#define D_CBC_BF 13 +#define D_CBC_CAST 14 +#define D_CBC_128_AES 15 +#define D_CBC_192_AES 16 +#define D_CBC_256_AES 17 +#define D_CBC_128_CML 18 +#define D_CBC_192_CML 19 +#define D_CBC_256_CML 20 +#define D_EVP 21 +#define D_SHA256 22 +#define D_SHA512 23 +#define D_WHIRLPOOL 24 +#define D_IGE_128_AES 25 +#define D_IGE_192_AES 26 +#define D_IGE_256_AES 27 +#define D_GHASH 28 +#define D_AES_128_GCM 29 +#define D_AES_256_GCM 30 +#define D_CHACHA20_POLY1305 31 double d = 0.0; long c[ALGOR_NUM][SIZE_NUM]; #define R_DSA_512 0 |