diff options
author | jsing <> | 2015-09-11 20:55:59 +0000 |
---|---|---|
committer | jsing <> | 2015-09-11 20:55:59 +0000 |
commit | 150d9a597eaa22312d0f25f7714b9d3cbfb1ce2d (patch) | |
tree | 46e3876de5daf202e47af819000c950f9531f96e /src | |
parent | 072385692a1f3fb1547dbbcf9f3ece71eb6757fb (diff) | |
download | openbsd-150d9a597eaa22312d0f25f7714b9d3cbfb1ce2d.tar.gz openbsd-150d9a597eaa22312d0f25f7714b9d3cbfb1ce2d.tar.bz2 openbsd-150d9a597eaa22312d0f25f7714b9d3cbfb1ce2d.zip |
unifdef -DOPENSSL_NO_RC5
Diffstat (limited to 'src')
-rw-r--r-- | src/usr.bin/openssl/openssl.c | 9 | ||||
-rw-r--r-- | src/usr.bin/openssl/speed.c | 35 |
2 files changed, 2 insertions, 42 deletions
diff --git a/src/usr.bin/openssl/openssl.c b/src/usr.bin/openssl/openssl.c index c85a807d29..0361d1cbb4 100644 --- a/src/usr.bin/openssl/openssl.c +++ b/src/usr.bin/openssl/openssl.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: openssl.c,v 1.7 2015/09/11 14:30:23 bcook Exp $ */ | 1 | /* $OpenBSD: openssl.c,v 1.8 2015/09/11 20:55:59 jsing 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 | * |
@@ -321,13 +321,6 @@ FUNCTION functions[] = { | |||
321 | { FUNC_TYPE_CIPHER, "rc4", enc_main }, | 321 | { FUNC_TYPE_CIPHER, "rc4", enc_main }, |
322 | { FUNC_TYPE_CIPHER, "rc4-40", enc_main }, | 322 | { FUNC_TYPE_CIPHER, "rc4-40", enc_main }, |
323 | #endif | 323 | #endif |
324 | #ifndef OPENSSL_NO_RC5 | ||
325 | { FUNC_TYPE_CIPHER, "rc5", enc_main }, | ||
326 | { FUNC_TYPE_CIPHER, "rc5-cbc", enc_main }, | ||
327 | { FUNC_TYPE_CIPHER, "rc5-ecb", enc_main }, | ||
328 | { FUNC_TYPE_CIPHER, "rc5-cfb", enc_main }, | ||
329 | { FUNC_TYPE_CIPHER, "rc5-ofb", enc_main }, | ||
330 | #endif | ||
331 | #ifdef ZLIB | 324 | #ifdef ZLIB |
332 | { FUNC_TYPE_CIPHER, "zlib", enc_main }, | 325 | { FUNC_TYPE_CIPHER, "zlib", enc_main }, |
333 | #endif | 326 | #endif |
diff --git a/src/usr.bin/openssl/speed.c b/src/usr.bin/openssl/speed.c index 2c3dd8d6c6..a149a31afa 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.11 2015/09/11 14:30:23 bcook Exp $ */ | 1 | /* $OpenBSD: speed.c,v 1.12 2015/09/11 20:55:59 jsing 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 | * |
@@ -136,9 +136,6 @@ | |||
136 | #ifndef OPENSSL_NO_RC4 | 136 | #ifndef OPENSSL_NO_RC4 |
137 | #include <openssl/rc4.h> | 137 | #include <openssl/rc4.h> |
138 | #endif | 138 | #endif |
139 | #ifndef OPENSSL_NO_RC5 | ||
140 | #include <openssl/rc5.h> | ||
141 | #endif | ||
142 | #include <openssl/rsa.h> | 139 | #include <openssl/rsa.h> |
143 | #ifndef OPENSSL_NO_RIPEMD | 140 | #ifndef OPENSSL_NO_RIPEMD |
144 | #include <openssl/ripemd.h> | 141 | #include <openssl/ripemd.h> |
@@ -260,9 +257,6 @@ speed_main(int argc, char **argv) | |||
260 | #ifndef OPENSSL_NO_RC4 | 257 | #ifndef OPENSSL_NO_RC4 |
261 | RC4_KEY rc4_ks; | 258 | RC4_KEY rc4_ks; |
262 | #endif | 259 | #endif |
263 | #ifndef OPENSSL_NO_RC5 | ||
264 | RC5_32_KEY rc5_ks; | ||
265 | #endif | ||
266 | #ifndef OPENSSL_NO_RC2 | 260 | #ifndef OPENSSL_NO_RC2 |
267 | RC2_KEY rc2_ks; | 261 | RC2_KEY rc2_ks; |
268 | #endif | 262 | #endif |
@@ -670,13 +664,6 @@ speed_main(int argc, char **argv) | |||
670 | doit[D_CBC_RC2] = 1; | 664 | doit[D_CBC_RC2] = 1; |
671 | else | 665 | else |
672 | #endif | 666 | #endif |
673 | #ifndef OPENSSL_NO_RC5 | ||
674 | if (strcmp(*argv, "rc5-cbc") == 0) | ||
675 | doit[D_CBC_RC5] = 1; | ||
676 | else if (strcmp(*argv, "rc5") == 0) | ||
677 | doit[D_CBC_RC5] = 1; | ||
678 | else | ||
679 | #endif | ||
680 | #ifndef OPENSSL_NO_IDEA | 667 | #ifndef OPENSSL_NO_IDEA |
681 | if (strcmp(*argv, "idea-cbc") == 0) | 668 | if (strcmp(*argv, "idea-cbc") == 0) |
682 | doit[D_CBC_IDEA] = 1; | 669 | doit[D_CBC_IDEA] = 1; |
@@ -848,9 +835,6 @@ speed_main(int argc, char **argv) | |||
848 | #ifndef OPENSSL_NO_RC2 | 835 | #ifndef OPENSSL_NO_RC2 |
849 | BIO_printf(bio_err, "rc2-cbc "); | 836 | BIO_printf(bio_err, "rc2-cbc "); |
850 | #endif | 837 | #endif |
851 | #ifndef OPENSSL_NO_RC5 | ||
852 | BIO_printf(bio_err, "rc5-cbc "); | ||
853 | #endif | ||
854 | #ifndef OPENSSL_NO_BF | 838 | #ifndef OPENSSL_NO_BF |
855 | BIO_printf(bio_err, "bf-cbc"); | 839 | BIO_printf(bio_err, "bf-cbc"); |
856 | #endif | 840 | #endif |
@@ -989,9 +973,6 @@ speed_main(int argc, char **argv) | |||
989 | #ifndef OPENSSL_NO_RC2 | 973 | #ifndef OPENSSL_NO_RC2 |
990 | RC2_set_key(&rc2_ks, 16, key16, 128); | 974 | RC2_set_key(&rc2_ks, 16, key16, 128); |
991 | #endif | 975 | #endif |
992 | #ifndef OPENSSL_NO_RC5 | ||
993 | RC5_32_set_key(&rc5_ks, 16, key16, 12); | ||
994 | #endif | ||
995 | #ifndef OPENSSL_NO_BF | 976 | #ifndef OPENSSL_NO_BF |
996 | BF_set_key(&bf_ks, 16, key16); | 977 | BF_set_key(&bf_ks, 16, key16); |
997 | #endif | 978 | #endif |
@@ -1306,20 +1287,6 @@ speed_main(int argc, char **argv) | |||
1306 | } | 1287 | } |
1307 | } | 1288 | } |
1308 | #endif | 1289 | #endif |
1309 | #ifndef OPENSSL_NO_RC5 | ||
1310 | if (doit[D_CBC_RC5]) { | ||
1311 | for (j = 0; j < SIZE_NUM; j++) { | ||
1312 | print_message(names[D_CBC_RC5], c[D_CBC_RC5][j], lengths[j]); | ||
1313 | Time_F(START); | ||
1314 | for (count = 0, run = 1; COND(c[D_CBC_RC5][j]); count++) | ||
1315 | RC5_32_cbc_encrypt(buf, buf, | ||
1316 | (unsigned long) lengths[j], &rc5_ks, | ||
1317 | iv, RC5_ENCRYPT); | ||
1318 | d = Time_F(STOP); | ||
1319 | print_result(D_CBC_RC5, j, count, d); | ||
1320 | } | ||
1321 | } | ||
1322 | #endif | ||
1323 | #ifndef OPENSSL_NO_BF | 1290 | #ifndef OPENSSL_NO_BF |
1324 | if (doit[D_CBC_BF]) { | 1291 | if (doit[D_CBC_BF]) { |
1325 | for (j = 0; j < SIZE_NUM; j++) { | 1292 | for (j = 0; j < SIZE_NUM; j++) { |