diff options
| author | jsing <> | 2023-08-10 11:06:36 +0000 |
|---|---|---|
| committer | jsing <> | 2023-08-10 11:06:36 +0000 |
| commit | 73405132b1c817fdf18733cd0c7e5e2e170e8cb5 (patch) | |
| tree | ccd329169440232f76932a7e14a5f066e9f30b35 /src/lib/libcrypto/ripemd/ripemd.c | |
| parent | ec03dceebf5d90629c3d3eccd44d7bec3962e8d6 (diff) | |
| download | openbsd-73405132b1c817fdf18733cd0c7e5e2e170e8cb5.tar.gz openbsd-73405132b1c817fdf18733cd0c7e5e2e170e8cb5.tar.bz2 openbsd-73405132b1c817fdf18733cd0c7e5e2e170e8cb5.zip | |
Inline the remaining 10 lines from rmdconst.h.
Discussed with tb@
Diffstat (limited to 'src/lib/libcrypto/ripemd/ripemd.c')
| -rw-r--r-- | src/lib/libcrypto/ripemd/ripemd.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/lib/libcrypto/ripemd/ripemd.c b/src/lib/libcrypto/ripemd/ripemd.c index 24b5986576..e22afe8e11 100644 --- a/src/lib/libcrypto/ripemd/ripemd.c +++ b/src/lib/libcrypto/ripemd/ripemd.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ripemd.c,v 1.5 2023/08/10 11:04:30 jsing Exp $ */ | 1 | /* $OpenBSD: ripemd.c,v 1.6 2023/08/10 11:06:36 jsing 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 | * |
| @@ -125,7 +125,17 @@ __END_HIDDEN_DECLS | |||
| 125 | #define RIPEMD160_D 0x10325476L | 125 | #define RIPEMD160_D 0x10325476L |
| 126 | #define RIPEMD160_E 0xC3D2E1F0L | 126 | #define RIPEMD160_E 0xC3D2E1F0L |
| 127 | 127 | ||
| 128 | #include "rmdconst.h" | 128 | #define KL0 0x00000000L |
| 129 | #define KL1 0x5A827999L | ||
| 130 | #define KL2 0x6ED9EBA1L | ||
| 131 | #define KL3 0x8F1BBCDCL | ||
| 132 | #define KL4 0xA953FD4EL | ||
| 133 | |||
| 134 | #define KR0 0x50A28BE6L | ||
| 135 | #define KR1 0x5C4DD124L | ||
| 136 | #define KR2 0x6D703EF3L | ||
| 137 | #define KR3 0x7A6D76E9L | ||
| 138 | #define KR4 0x00000000L | ||
| 129 | 139 | ||
| 130 | #define RIP1(a,b,c,d,e,w,s) { \ | 140 | #define RIP1(a,b,c,d,e,w,s) { \ |
| 131 | a+=F1(b,c,d)+w; \ | 141 | a+=F1(b,c,d)+w; \ |
