diff options
author | jsing <> | 2024-03-28 07:03:25 +0000 |
---|---|---|
committer | jsing <> | 2024-03-28 07:03:25 +0000 |
commit | 4eef145b0e93151288ad846aa8f249bd3bee5ad7 (patch) | |
tree | cca0d2d414cf190bd79fbec4f49b01ccabcf1a81 /src/lib | |
parent | e27c8bbf715dff2f2e9f026a1084fa8597e4061c (diff) | |
download | openbsd-4eef145b0e93151288ad846aa8f249bd3bee5ad7.tar.gz openbsd-4eef145b0e93151288ad846aa8f249bd3bee5ad7.tar.bz2 openbsd-4eef145b0e93151288ad846aa8f249bd3bee5ad7.zip |
Clean up various defines and prototypes.
No assembly implementations remain, hence we can clean the mess up and
replace it with a single static void function.
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libcrypto/ripemd/ripemd.c | 30 |
1 files changed, 2 insertions, 28 deletions
diff --git a/src/lib/libcrypto/ripemd/ripemd.c b/src/lib/libcrypto/ripemd/ripemd.c index b05a63419b..b07b85e9fe 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.11 2024/03/28 05:21:20 jsing Exp $ */ | 1 | /* $OpenBSD: ripemd.c,v 1.12 2024/03/28 07:03:25 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 | * |
@@ -65,23 +65,6 @@ | |||
65 | #include <openssl/crypto.h> | 65 | #include <openssl/crypto.h> |
66 | #include <openssl/ripemd.h> | 66 | #include <openssl/ripemd.h> |
67 | 67 | ||
68 | /* | ||
69 | * DO EXAMINE COMMENTS IN crypto/md5/md5_locl.h & crypto/md5/md5_dgst.c | ||
70 | * FOR EXPLANATIONS ON FOLLOWING "CODE." | ||
71 | * <appro@fy.chalmers.se> | ||
72 | */ | ||
73 | #ifdef RMD160_ASM | ||
74 | # if defined(__i386) || defined(__i386__) || defined(_M_IX86) || defined(__INTEL__) | ||
75 | # define ripemd160_block_data_order ripemd160_block_asm_data_order | ||
76 | # endif | ||
77 | #endif | ||
78 | |||
79 | __BEGIN_HIDDEN_DECLS | ||
80 | |||
81 | void ripemd160_block_data_order (RIPEMD160_CTX *c, const void *p, size_t num); | ||
82 | |||
83 | __END_HIDDEN_DECLS | ||
84 | |||
85 | #define DATA_ORDER_IS_LITTLE_ENDIAN | 68 | #define DATA_ORDER_IS_LITTLE_ENDIAN |
86 | 69 | ||
87 | #define HASH_LONG RIPEMD160_LONG | 70 | #define HASH_LONG RIPEMD160_LONG |
@@ -166,15 +149,7 @@ __END_HIDDEN_DECLS | |||
166 | a=ROTATE(a,s)+e; \ | 149 | a=ROTATE(a,s)+e; \ |
167 | c=ROTATE(c,10); } | 150 | c=ROTATE(c,10); } |
168 | 151 | ||
169 | # ifdef RMD160_ASM | 152 | static void |
170 | void ripemd160_block_x86(RIPEMD160_CTX *c, unsigned long *p, size_t num); | ||
171 | # define ripemd160_block ripemd160_block_x86 | ||
172 | # else | ||
173 | void ripemd160_block(RIPEMD160_CTX *c, unsigned long *p, size_t num); | ||
174 | # endif | ||
175 | |||
176 | #ifndef ripemd160_block_data_order | ||
177 | void | ||
178 | ripemd160_block_data_order(RIPEMD160_CTX *ctx, const void *p, size_t num) | 153 | ripemd160_block_data_order(RIPEMD160_CTX *ctx, const void *p, size_t num) |
179 | { | 154 | { |
180 | const unsigned char *data = p; | 155 | const unsigned char *data = p; |
@@ -414,7 +389,6 @@ ripemd160_block_data_order(RIPEMD160_CTX *ctx, const void *p, size_t num) | |||
414 | 389 | ||
415 | } | 390 | } |
416 | } | 391 | } |
417 | #endif | ||
418 | 392 | ||
419 | int | 393 | int |
420 | RIPEMD160_Init(RIPEMD160_CTX *c) | 394 | RIPEMD160_Init(RIPEMD160_CTX *c) |