diff options
Diffstat (limited to 'src/lib/libcrypto/rc2/rc2_local.h')
| -rw-r--r-- | src/lib/libcrypto/rc2/rc2_local.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/libcrypto/rc2/rc2_local.h b/src/lib/libcrypto/rc2/rc2_local.h index dd5598760e..885b17aa5e 100644 --- a/src/lib/libcrypto/rc2/rc2_local.h +++ b/src/lib/libcrypto/rc2/rc2_local.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: rc2_local.h,v 1.3 2024/03/29 05:03:48 jsing Exp $ */ | 1 | /* $OpenBSD: rc2_local.h,v 1.4 2025/11/26 10:19:57 tb 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 | * |
| @@ -56,6 +56,9 @@ | |||
| 56 | * [including the GNU Public Licence.] | 56 | * [including the GNU Public Licence.] |
| 57 | */ | 57 | */ |
| 58 | 58 | ||
| 59 | #ifndef HEADER_RC2_LOCAL_H | ||
| 60 | #define HEADER_RC2_LOCAL_H | ||
| 61 | |||
| 59 | #undef c2l | 62 | #undef c2l |
| 60 | #define c2l(c,l) (l =((unsigned long)(*((c)++))) , \ | 63 | #define c2l(c,l) (l =((unsigned long)(*((c)++))) , \ |
| 61 | l|=((unsigned long)(*((c)++)))<< 8L, \ | 64 | l|=((unsigned long)(*((c)++)))<< 8L, \ |
| @@ -110,3 +113,5 @@ | |||
| 110 | x2=(t<<3)|(t>>13); \ | 113 | x2=(t<<3)|(t>>13); \ |
| 111 | t=(x3+(x0& ~x2)+(x1&x2)+ *(p0++))&0xffff; \ | 114 | t=(x3+(x0& ~x2)+(x1&x2)+ *(p0++))&0xffff; \ |
| 112 | x3=(t<<5)|(t>>11); | 115 | x3=(t<<5)|(t>>11); |
| 116 | |||
| 117 | #endif /* HEADER_RC2_LOCAL_H */ | ||
