diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2024-03-28 07:03:26 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2024-03-28 07:03:26 +0000 |
commit | bd0202c18008e52c1592bddf3939929c92f3db1c (patch) | |
tree | 5c1d6d559f61de38dfd4a5d7b799191257469d23 /lib | |
parent | fe7d0cac3b1ee1387992e51dcca9fbe3b2675889 (diff) |
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 'lib')
-rw-r--r-- | lib/libcrypto/ripemd/ripemd.c | 30 |
1 files changed, 2 insertions, 28 deletions
diff --git a/lib/libcrypto/ripemd/ripemd.c b/lib/libcrypto/ripemd/ripemd.c index b05a63419ba..b07b85e9fe5 100644 --- a/lib/libcrypto/ripemd/ripemd.c +++ b/lib/libcrypto/ripemd/ripemd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ripemd.c,v 1.11 2024/03/28 05:21:20 jsing Exp $ */ +/* $OpenBSD: ripemd.c,v 1.12 2024/03/28 07:03:25 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -65,23 +65,6 @@ #include <openssl/crypto.h> #include <openssl/ripemd.h> -/* - * DO EXAMINE COMMENTS IN crypto/md5/md5_locl.h & crypto/md5/md5_dgst.c - * FOR EXPLANATIONS ON FOLLOWING "CODE." - * <appro@fy.chalmers.se> - */ -#ifdef RMD160_ASM -# if defined(__i386) || defined(__i386__) || defined(_M_IX86) || defined(__INTEL__) -# define ripemd160_block_data_order ripemd160_block_asm_data_order -# endif -#endif - -__BEGIN_HIDDEN_DECLS - -void ripemd160_block_data_order (RIPEMD160_CTX *c, const void *p, size_t num); - -__END_HIDDEN_DECLS - #define DATA_ORDER_IS_LITTLE_ENDIAN #define HASH_LONG RIPEMD160_LONG @@ -166,15 +149,7 @@ __END_HIDDEN_DECLS a=ROTATE(a,s)+e; \ c=ROTATE(c,10); } -# ifdef RMD160_ASM -void ripemd160_block_x86(RIPEMD160_CTX *c, unsigned long *p, size_t num); -# define ripemd160_block ripemd160_block_x86 -# else -void ripemd160_block(RIPEMD160_CTX *c, unsigned long *p, size_t num); -# endif - -#ifndef ripemd160_block_data_order -void +static void ripemd160_block_data_order(RIPEMD160_CTX *ctx, const void *p, size_t num) { const unsigned char *data = p; @@ -414,7 +389,6 @@ ripemd160_block_data_order(RIPEMD160_CTX *ctx, const void *p, size_t num) } } -#endif int RIPEMD160_Init(RIPEMD160_CTX *c) |