From 92850d3aeacc8a885b04631565c78dd2e4962507 Mon Sep 17 00:00:00 2001 From: tb Date: Fri, 24 May 2024 19:21:58 +0000 Subject: [PATCH] des_local.h: Remove some unused macros --- lib/libcrypto/des/des_local.h | 21 +-------------------- 1 file changed, 1 insertion(+), 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; \ -- 2.20.1