diff options
author | jsing <> | 2024-03-27 11:44:39 +0000 |
---|---|---|
committer | jsing <> | 2024-03-27 11:44:39 +0000 |
commit | c2eb04ad52795aefaabc7e43e3bd7f7fe8b1802b (patch) | |
tree | 36b9302e81057e6032ce0cc73f77dd7e511c2139 /src | |
parent | e333d9e70e8e1f3a91303e95e5541bc99a649c73 (diff) | |
download | openbsd-c2eb04ad52795aefaabc7e43e3bd7f7fe8b1802b.tar.gz openbsd-c2eb04ad52795aefaabc7e43e3bd7f7fe8b1802b.tar.bz2 openbsd-c2eb04ad52795aefaabc7e43e3bd7f7fe8b1802b.zip |
Remove unused c2l/c2ln/l2c/l2cn macros.
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libcrypto/bf/bf_local.h | 50 |
1 files changed, 3 insertions, 47 deletions
diff --git a/src/lib/libcrypto/bf/bf_local.h b/src/lib/libcrypto/bf/bf_local.h index 1cc29525dd..f463dda360 100644 --- a/src/lib/libcrypto/bf/bf_local.h +++ b/src/lib/libcrypto/bf/bf_local.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bf_local.h,v 1.1 2022/11/26 16:08:51 tb Exp $ */ | 1 | /* $OpenBSD: bf_local.h,v 1.2 2024/03/27 11:44:39 jsing Exp $ */ |
2 | /* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -56,54 +56,10 @@ | |||
56 | * [including the GNU Public Licence.] | 56 | * [including the GNU Public Licence.] |
57 | */ | 57 | */ |
58 | 58 | ||
59 | #ifndef HEADER_BF_LOCL_H | ||
60 | #define HEADER_BF_LOCL_H | ||
61 | #include <openssl/opensslconf.h> /* BF_PTR, BF_PTR2 */ | 59 | #include <openssl/opensslconf.h> /* BF_PTR, BF_PTR2 */ |
62 | 60 | ||
63 | #undef c2l | 61 | #ifndef HEADER_BF_LOCL_H |
64 | #define c2l(c,l) (l =((unsigned long)(*((c)++))) , \ | 62 | #define HEADER_BF_LOCL_H |
65 | l|=((unsigned long)(*((c)++)))<< 8L, \ | ||
66 | l|=((unsigned long)(*((c)++)))<<16L, \ | ||
67 | l|=((unsigned long)(*((c)++)))<<24L) | ||
68 | |||
69 | /* NOTE - c is not incremented as per c2l */ | ||
70 | #undef c2ln | ||
71 | #define c2ln(c,l1,l2,n) { \ | ||
72 | c+=n; \ | ||
73 | l1=l2=0; \ | ||
74 | switch (n) { \ | ||
75 | case 8: l2 =((unsigned long)(*(--(c))))<<24L; \ | ||
76 | case 7: l2|=((unsigned long)(*(--(c))))<<16L; \ | ||
77 | case 6: l2|=((unsigned long)(*(--(c))))<< 8L; \ | ||
78 | case 5: l2|=((unsigned long)(*(--(c)))); \ | ||
79 | case 4: l1 =((unsigned long)(*(--(c))))<<24L; \ | ||
80 | case 3: l1|=((unsigned long)(*(--(c))))<<16L; \ | ||
81 | case 2: l1|=((unsigned long)(*(--(c))))<< 8L; \ | ||
82 | case 1: l1|=((unsigned long)(*(--(c)))); \ | ||
83 | } \ | ||
84 | } | ||
85 | |||
86 | #undef l2c | ||
87 | #define l2c(l,c) (*((c)++)=(unsigned char)(((l) )&0xff), \ | ||
88 | *((c)++)=(unsigned char)(((l)>> 8L)&0xff), \ | ||
89 | *((c)++)=(unsigned char)(((l)>>16L)&0xff), \ | ||
90 | *((c)++)=(unsigned char)(((l)>>24L)&0xff)) | ||
91 | |||
92 | /* NOTE - c is not incremented as per l2c */ | ||
93 | #undef l2cn | ||
94 | #define l2cn(l1,l2,c,n) { \ | ||
95 | c+=n; \ | ||
96 | switch (n) { \ | ||
97 | case 8: *(--(c))=(unsigned char)(((l2)>>24L)&0xff); \ | ||
98 | case 7: *(--(c))=(unsigned char)(((l2)>>16L)&0xff); \ | ||
99 | case 6: *(--(c))=(unsigned char)(((l2)>> 8L)&0xff); \ | ||
100 | case 5: *(--(c))=(unsigned char)(((l2) )&0xff); \ | ||
101 | case 4: *(--(c))=(unsigned char)(((l1)>>24L)&0xff); \ | ||
102 | case 3: *(--(c))=(unsigned char)(((l1)>>16L)&0xff); \ | ||
103 | case 2: *(--(c))=(unsigned char)(((l1)>> 8L)&0xff); \ | ||
104 | case 1: *(--(c))=(unsigned char)(((l1) )&0xff); \ | ||
105 | } \ | ||
106 | } | ||
107 | 63 | ||
108 | /* NOTE - c is not incremented as per n2l */ | 64 | /* NOTE - c is not incremented as per n2l */ |
109 | #define n2ln(c,l1,l2,n) { \ | 65 | #define n2ln(c,l1,l2,n) { \ |