summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/arch/alpha
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/alpha
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/alpha')
-rw-r--r--src/lib/libcrypto/arch/alpha/opensslconf.h55
1 files changed, 0 insertions, 55 deletions
diff --git a/src/lib/libcrypto/arch/alpha/opensslconf.h b/src/lib/libcrypto/arch/alpha/opensslconf.h
index 331f7a0978..fd0c0cac7f 100644
--- a/src/lib/libcrypto/arch/alpha/opensslconf.h
+++ b/src/lib/libcrypto/arch/alpha/opensslconf.h
@@ -83,66 +83,11 @@
83#define DES_PTR 83#define DES_PTR
84#endif 84#endif
85 85
86/* This helps C compiler generate the correct code for multiple functional
87 * units. It reduces register dependencies at the expense of 2 more
88 * registers */
89#ifndef DES_RISC1
90#undef DES_RISC1
91#endif
92
93#ifndef DES_RISC2
94#define DES_RISC2
95#endif
96
97#if defined(DES_RISC1) && defined(DES_RISC2)
98YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!!
99#endif
100
101/* Unroll the inner loop, this sometimes helps, sometimes hinders. 86/* Unroll the inner loop, this sometimes helps, sometimes hinders.
102 * Very much CPU dependent */ 87 * Very much CPU dependent */
103#ifndef DES_UNROLL 88#ifndef DES_UNROLL
104#undef DES_UNROLL 89#undef DES_UNROLL
105#endif 90#endif
106 91
107/* These default values were supplied by
108 * Peter Gutman <pgut001@cs.auckland.ac.nz>
109 * They are only used if nothing else has been defined */
110#if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL)
111/* Special defines which change the way the code is built depending on the
112 CPU and OS. For SGI machines you can use _MIPS_SZLONG (32 or 64) to find
113 even newer MIPS CPU's, but at the moment one size fits all for
114 optimization options. Older Sparc's work better with only UNROLL, but
115 there's no way to tell at compile time what it is you're running on */
116
117#if defined( sun ) /* Newer Sparc's */
118# define DES_PTR
119# define DES_RISC1
120# define DES_UNROLL
121#elif defined( __ultrix ) /* Older MIPS */
122# define DES_PTR
123# define DES_RISC2
124# define DES_UNROLL
125#elif defined( __osf1__ ) /* Alpha */
126# define DES_PTR
127# define DES_RISC2
128#elif defined ( _AIX ) /* RS6000 */
129 /* Unknown */
130#elif defined( __hpux ) /* HP-PA */
131 /* Unknown */
132#elif defined( __aux ) /* 68K */
133 /* Unknown */
134#elif defined( __dgux ) /* 88K (but P6 in latest boxes) */
135# define DES_UNROLL
136#elif defined( __sgi ) /* Newer MIPS */
137# define DES_PTR
138# define DES_RISC2
139# define DES_UNROLL
140#elif defined(i386) || defined(__i386__) /* x86 boxes, should be gcc */
141# define DES_PTR
142# define DES_RISC1
143# define DES_UNROLL
144#endif /* Systems-specific speed defines */
145#endif
146
147#endif /* DES_DEFAULT_OPTIONS */ 92#endif /* DES_DEFAULT_OPTIONS */
148#endif /* HEADER_DES_LOCL_H */ 93#endif /* HEADER_DES_LOCL_H */