summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/arch/amd64
diff options
context:
space:
mode:
authortb <>2025-06-08 04:48:08 +0000
committertb <>2025-06-08 04:48:08 +0000
commita57d5d467aca7987cf2308d0eed9025f200e569d (patch)
treeed2bc923467ec416ca4c4f0b0e47899b3de9c702 /src/lib/libcrypto/arch/amd64
parentc93e233afb3dbdc0a037f3c39ff904c92d637fa7 (diff)
downloadopenbsd-a57d5d467aca7987cf2308d0eed9025f200e569d.tar.gz
openbsd-a57d5d467aca7987cf2308d0eed9025f200e569d.tar.bz2
openbsd-a57d5d467aca7987cf2308d0eed9025f200e569d.zip
Remove DES_RISC*
codesearch.debian.net only shows some legacy openssl patches plus binkd (a FidoNet mailer) as sole potential user. net-snmp and a strongswan DES plugin bundle some opt-in libdes/openssl legacy things. If this should break any of this, I don't think we need to care. If you're really going to use DES you can also use non bleeding edge libressl. We can remove the big 'default values' block because one of DES_RISC1, DES_RISC2, DES_UNROLL is always defined (you can ignore DES_PTR for this), so this is dead support code for mostly dead platforms. ok kenjiro
Diffstat (limited to 'src/lib/libcrypto/arch/amd64')
-rw-r--r--src/lib/libcrypto/arch/amd64/opensslconf.h55
1 files changed, 0 insertions, 55 deletions
diff --git a/src/lib/libcrypto/arch/amd64/opensslconf.h b/src/lib/libcrypto/arch/amd64/opensslconf.h
index e4868597f2..fbcc122f48 100644
--- a/src/lib/libcrypto/arch/amd64/opensslconf.h
+++ b/src/lib/libcrypto/arch/amd64/opensslconf.h
@@ -80,66 +80,11 @@
80#undef DES_PTR 80#undef DES_PTR
81#endif 81#endif
82 82
83/* This helps C compiler generate the correct code for multiple functional
84 * units. It reduces register dependencies at the expense of 2 more
85 * registers */
86#ifndef DES_RISC1
87#undef DES_RISC1
88#endif
89
90#ifndef DES_RISC2
91#undef DES_RISC2
92#endif
93
94#if defined(DES_RISC1) && defined(DES_RISC2)
95YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!!
96#endif
97
98/* Unroll the inner loop, this sometimes helps, sometimes hinders. 83/* Unroll the inner loop, this sometimes helps, sometimes hinders.
99 * Very much CPU dependent */ 84 * Very much CPU dependent */
100#ifndef DES_UNROLL 85#ifndef DES_UNROLL
101#define DES_UNROLL 86#define DES_UNROLL
102#endif 87#endif
103 88
104/* These default values were supplied by
105 * Peter Gutman <pgut001@cs.auckland.ac.nz>
106 * They are only used if nothing else has been defined */
107#if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL)
108/* Special defines which change the way the code is built depending on the
109 CPU and OS. For SGI machines you can use _MIPS_SZLONG (32 or 64) to find
110 even newer MIPS CPU's, but at the moment one size fits all for
111 optimization options. Older Sparc's work better with only UNROLL, but
112 there's no way to tell at compile time what it is you're running on */
113
114#if defined( sun ) /* Newer Sparc's */
115# define DES_PTR
116# define DES_RISC1
117# define DES_UNROLL
118#elif defined( __ultrix ) /* Older MIPS */
119# define DES_PTR
120# define DES_RISC2
121# define DES_UNROLL
122#elif defined( __osf1__ ) /* Alpha */
123# define DES_PTR
124# define DES_RISC2
125#elif defined ( _AIX ) /* RS6000 */
126 /* Unknown */
127#elif defined( __hpux ) /* HP-PA */
128 /* Unknown */
129#elif defined( __aux ) /* 68K */
130 /* Unknown */
131#elif defined( __dgux ) /* 88K (but P6 in latest boxes) */
132# define DES_UNROLL
133#elif defined( __sgi ) /* Newer MIPS */
134# define DES_PTR
135# define DES_RISC2
136# define DES_UNROLL
137#elif defined(i386) || defined(__i386__) /* x86 boxes, should be gcc */
138# define DES_PTR
139# define DES_RISC1
140# define DES_UNROLL
141#endif /* Systems-specific speed defines */
142#endif
143
144#endif /* DES_DEFAULT_OPTIONS */ 89#endif /* DES_DEFAULT_OPTIONS */
145#endif /* HEADER_DES_LOCL_H */ 90#endif /* HEADER_DES_LOCL_H */