summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/des/des_enc.c
diff options
context:
space:
mode:
authorjsing <>2024-08-31 16:17:13 +0000
committerjsing <>2024-08-31 16:17:13 +0000
commit70eebda78549a323c4608f8edfe9bd332ad13111 (patch)
tree9814ebed1a79b15188f1dc92c3d42699303c4c9d /src/lib/libcrypto/des/des_enc.c
parentef3851a6adc6098adccc7dac9c2e90961097b49b (diff)
downloadopenbsd-70eebda78549a323c4608f8edfe9bd332ad13111.tar.gz
openbsd-70eebda78549a323c4608f8edfe9bd332ad13111.tar.bz2
openbsd-70eebda78549a323c4608f8edfe9bd332ad13111.zip
Unifdef DES_PTR, DES_RISC1 and DES_RISC2.
These are all go fast knobs that convolute the code and can be dangerous. Lets presume that we have a modern and somewhat capable C compiler instead. ok tb@
Diffstat (limited to 'src/lib/libcrypto/des/des_enc.c')
-rw-r--r--src/lib/libcrypto/des/des_enc.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/lib/libcrypto/des/des_enc.c b/src/lib/libcrypto/des/des_enc.c
index a2f07ba71c..deec50bffb 100644
--- a/src/lib/libcrypto/des/des_enc.c
+++ b/src/lib/libcrypto/des/des_enc.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: des_enc.c,v 1.19 2024/08/31 16:04:22 jsing Exp $ */ 1/* $OpenBSD: des_enc.c,v 1.20 2024/08/31 16:17:13 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 *
@@ -210,9 +210,6 @@ void
210DES_encrypt1(DES_LONG *data, DES_key_schedule *ks, int enc) 210DES_encrypt1(DES_LONG *data, DES_key_schedule *ks, int enc)
211{ 211{
212 DES_LONG l, r, t, u; 212 DES_LONG l, r, t, u;
213#ifdef DES_PTR
214 const unsigned char *des_SP = (const unsigned char *)DES_SPtrans;
215#endif
216#ifndef DES_UNROLL 213#ifndef DES_UNROLL
217 int i; 214 int i;
218#endif 215#endif
@@ -301,9 +298,6 @@ void
301DES_encrypt2(DES_LONG *data, DES_key_schedule *ks, int enc) 298DES_encrypt2(DES_LONG *data, DES_key_schedule *ks, int enc)
302{ 299{
303 DES_LONG l, r, t, u; 300 DES_LONG l, r, t, u;
304#ifdef DES_PTR
305 const unsigned char *des_SP = (const unsigned char *)DES_SPtrans;
306#endif
307#ifndef DES_UNROLL 301#ifndef DES_UNROLL
308 int i; 302 int i;
309#endif 303#endif