=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/openssl/speed.c,v retrieving revision 1.13 retrieving revision 1.14 diff -c -r1.13 -r1.14 *** src/usr.bin/openssl/speed.c 2015/09/12 15:49:53 1.13 --- src/usr.bin/openssl/speed.c 2015/09/13 23:36:21 1.14 *************** *** 1,4 **** ! /* $OpenBSD: speed.c,v 1.13 2015/09/12 15:49:53 bcook Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * --- 1,4 ---- ! /* $OpenBSD: speed.c,v 1.14 2015/09/13 23:36:21 doug Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * *************** *** 124,132 **** #ifndef OPENSSL_NO_IDEA #include #endif - #ifndef OPENSSL_NO_MD4 - #include - #endif #ifndef OPENSSL_NO_MD5 #include #endif --- 124,129 ---- *************** *** 173,179 **** #define MAX_ECDH_SIZE 256 static const char *names[ALGOR_NUM] = { ! "md2", NULL /* was mdc2 */, "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", --- 170,177 ---- #define MAX_ECDH_SIZE 256 static const char *names[ALGOR_NUM] = { ! "md2", NULL /* was mdc2 */, NULL /* was 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", *************** *** 234,242 **** long rsa_count; unsigned rsa_num; unsigned char md[EVP_MAX_MD_SIZE]; - #ifndef OPENSSL_NO_MD4 - unsigned char md4[MD4_DIGEST_LENGTH]; - #endif #ifndef OPENSSL_NO_MD5 unsigned char md5[MD5_DIGEST_LENGTH]; unsigned char hmac[MD5_DIGEST_LENGTH]; --- 232,237 ---- *************** *** 318,324 **** 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 --- 313,318 ---- *************** *** 557,567 **** j--; /* Otherwise, -mr gets confused with an * algorithm. */ } else - #ifndef OPENSSL_NO_MD4 - if (strcmp(*argv, "md4") == 0) - doit[D_MD4] = 1; - else - #endif #ifndef OPENSSL_NO_MD5 if (strcmp(*argv, "md5") == 0) doit[D_MD5] = 1; --- 551,556 ---- *************** *** 812,820 **** BIO_printf(bio_err, "Error: bad option or value\n"); BIO_printf(bio_err, "\n"); BIO_printf(bio_err, "Available values:\n"); - #ifndef OPENSSL_NO_MD4 - BIO_printf(bio_err, "md4 "); - #endif #ifndef OPENSSL_NO_MD5 BIO_printf(bio_err, "md5 "); #ifndef OPENSSL_NO_HMAC --- 801,806 ---- *************** *** 837,843 **** BIO_printf(bio_err, "rmd160"); #endif #if !defined(OPENSSL_NO_MD2) || \ ! !defined(OPENSSL_NO_MD4) || !defined(OPENSSL_NO_MD5) || \ !defined(OPENSSL_NO_SHA1) || !defined(OPENSSL_NO_RIPEMD160) || \ !defined(OPENSSL_NO_WHIRLPOOL) BIO_printf(bio_err, "\n"); --- 823,829 ---- BIO_printf(bio_err, "rmd160"); #endif #if !defined(OPENSSL_NO_MD2) || \ ! !defined(OPENSSL_NO_MD5) || \ !defined(OPENSSL_NO_SHA1) || !defined(OPENSSL_NO_RIPEMD160) || \ !defined(OPENSSL_NO_WHIRLPOOL) BIO_printf(bio_err, "\n"); *************** *** 995,1013 **** #define COND(c) (run && count<0x7fffffff) #define COUNT(d) (count) signal(SIGALRM, sig_done); - - #ifndef OPENSSL_NO_MD4 - if (doit[D_MD4]) { - for (j = 0; j < SIZE_NUM; j++) { - print_message(names[D_MD4], c[D_MD4][j], lengths[j]); - Time_F(START); - for (count = 0, run = 1; COND(c[D_MD4][j]); count++) - EVP_Digest(&(buf[0]), (unsigned long) lengths[j], &(md4[0]), NULL, EVP_md4(), NULL); - d = Time_F(STOP); - print_result(D_MD4, j, count, d); - } - } - #endif #ifndef OPENSSL_NO_MD5 if (doit[D_MD5]) { --- 981,986 ----