From bd0202c18008e52c1592bddf3939929c92f3db1c Mon Sep 17 00:00:00 2001 From: Joel Sing Date: Thu, 28 Mar 2024 07:03:26 +0000 Subject: 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. --- lib/libcrypto/ripemd/ripemd.c | 30 ++---------------------------- 1 file changed, 2 insertions(+), 28 deletions(-) (limited to 'lib') 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 #include -/* - * DO EXAMINE COMMENTS IN crypto/md5/md5_locl.h & crypto/md5/md5_dgst.c - * FOR EXPLANATIONS ON FOLLOWING "CODE." - * - */ -#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) -- cgit v1.2.3