summaryrefslogtreecommitdiff
path: root/lib/libcrypto/bf
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2024-03-27 11:44:40 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2024-03-27 11:44:40 +0000
commit9dfff06dc5871bf045350c619a7e8aa755faa3e1 (patch)
tree87185308475e6ad3857352e5af3a0486f1c53835 /lib/libcrypto/bf
parent31dfea941a8c41c6a1c8e629ca706f4f0bb9523d (diff)
Remove unused c2l/c2ln/l2c/l2cn macros.
Diffstat (limited to 'lib/libcrypto/bf')
-rw-r--r--lib/libcrypto/bf/bf_local.h50
1 files changed, 3 insertions, 47 deletions
diff --git a/lib/libcrypto/bf/bf_local.h b/lib/libcrypto/bf/bf_local.h
index 1cc29525ddf..f463dda3605 100644
--- a/lib/libcrypto/bf/bf_local.h
+++ b/lib/libcrypto/bf/bf_local.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: bf_local.h,v 1.1 2022/11/26 16:08:51 tb Exp $ */
+/* $OpenBSD: bf_local.h,v 1.2 2024/03/27 11:44:39 jsing Exp $ */
/* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -56,54 +56,10 @@
* [including the GNU Public Licence.]
*/
-#ifndef HEADER_BF_LOCL_H
-#define HEADER_BF_LOCL_H
#include <openssl/opensslconf.h> /* BF_PTR, BF_PTR2 */
-#undef c2l
-#define c2l(c,l) (l =((unsigned long)(*((c)++))) , \
- l|=((unsigned long)(*((c)++)))<< 8L, \
- l|=((unsigned long)(*((c)++)))<<16L, \
- l|=((unsigned long)(*((c)++)))<<24L)
-
-/* NOTE - c is not incremented as per c2l */
-#undef c2ln
-#define c2ln(c,l1,l2,n) { \
- c+=n; \
- l1=l2=0; \
- switch (n) { \
- case 8: l2 =((unsigned long)(*(--(c))))<<24L; \
- case 7: l2|=((unsigned long)(*(--(c))))<<16L; \
- case 6: l2|=((unsigned long)(*(--(c))))<< 8L; \
- case 5: l2|=((unsigned long)(*(--(c)))); \
- case 4: l1 =((unsigned long)(*(--(c))))<<24L; \
- case 3: l1|=((unsigned long)(*(--(c))))<<16L; \
- case 2: l1|=((unsigned long)(*(--(c))))<< 8L; \
- case 1: l1|=((unsigned long)(*(--(c)))); \
- } \
- }
-
-#undef l2c
-#define l2c(l,c) (*((c)++)=(unsigned char)(((l) )&0xff), \
- *((c)++)=(unsigned char)(((l)>> 8L)&0xff), \
- *((c)++)=(unsigned char)(((l)>>16L)&0xff), \
- *((c)++)=(unsigned char)(((l)>>24L)&0xff))
-
-/* NOTE - c is not incremented as per l2c */
-#undef l2cn
-#define l2cn(l1,l2,c,n) { \
- c+=n; \
- switch (n) { \
- case 8: *(--(c))=(unsigned char)(((l2)>>24L)&0xff); \
- case 7: *(--(c))=(unsigned char)(((l2)>>16L)&0xff); \
- case 6: *(--(c))=(unsigned char)(((l2)>> 8L)&0xff); \
- case 5: *(--(c))=(unsigned char)(((l2) )&0xff); \
- case 4: *(--(c))=(unsigned char)(((l1)>>24L)&0xff); \
- case 3: *(--(c))=(unsigned char)(((l1)>>16L)&0xff); \
- case 2: *(--(c))=(unsigned char)(((l1)>> 8L)&0xff); \
- case 1: *(--(c))=(unsigned char)(((l1) )&0xff); \
- } \
- }
+#ifndef HEADER_BF_LOCL_H
+#define HEADER_BF_LOCL_H
/* NOTE - c is not incremented as per n2l */
#define n2ln(c,l1,l2,n) { \