summaryrefslogtreecommitdiff
path: root/lib/libcrypto/des
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2024-05-24 19:21:59 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2024-05-24 19:21:59 +0000
commit105a3acd93fe8dfb961e9a7e106f1b0f28d0bb84 (patch)
treefe9beaff883ade90b6d9d9ca46f15198578728a4 /lib/libcrypto/des
parentd9555c2bd7befaab94b9282ad5fd648303b39656 (diff)
des_local.h: Remove some unused macros
Diffstat (limited to 'lib/libcrypto/des')
-rw-r--r--lib/libcrypto/des/des_local.h21
1 files changed, 1 insertions, 20 deletions
diff --git a/lib/libcrypto/des/des_local.h b/lib/libcrypto/des/des_local.h
index f081adedb2b..c37128473b1 100644
--- a/lib/libcrypto/des/des_local.h
+++ b/lib/libcrypto/des/des_local.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: des_local.h,v 1.2 2023/07/08 07:11:07 beck Exp $ */
+/* $OpenBSD: des_local.h,v 1.3 2024/05/24 19:21:58 tb Exp $ */
/* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -73,11 +73,6 @@
__BEGIN_HIDDEN_DECLS
#define ITERATIONS 16
-#define HALF_ITERATIONS 8
-
-/* used in des_read and des_write */
-#define MAXWRITE (1024*16)
-#define BSIZE (MAXWRITE+4)
#define c2l(c,l) (l =((DES_LONG)(*((c)++))) , \
l|=((DES_LONG)(*((c)++)))<< 8L, \
@@ -105,20 +100,6 @@ __BEGIN_HIDDEN_DECLS
*((c)++)=(unsigned char)(((l)>>16L)&0xff), \
*((c)++)=(unsigned char)(((l)>>24L)&0xff))
-/* replacements for htonl and ntohl since I have no idea what to do
- * when faced with machines with 8 byte longs. */
-#define HDRSIZE 4
-
-#define n2l(c,l) (l =((DES_LONG)(*((c)++)))<<24L, \
- l|=((DES_LONG)(*((c)++)))<<16L, \
- l|=((DES_LONG)(*((c)++)))<< 8L, \
- l|=((DES_LONG)(*((c)++))))
-
-#define l2n(l,c) (*((c)++)=(unsigned char)(((l)>>24L)&0xff), \
- *((c)++)=(unsigned char)(((l)>>16L)&0xff), \
- *((c)++)=(unsigned char)(((l)>> 8L)&0xff), \
- *((c)++)=(unsigned char)(((l) )&0xff))
-
/* NOTE - c is not incremented as per l2c */
#define l2cn(l1,l2,c,n) { \
c+=n; \