aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/ripemd/rmd_dgst.c
diff options
context:
space:
mode:
authorUlf Möller <ulf@openssl.org>1999-04-19 21:31:43 +0000
committerUlf Möller <ulf@openssl.org>1999-04-19 21:31:43 +0000
commit6b691a5c85ddc4e407e32781841fee5c029506cd (patch)
tree436f1127406e1cacfe83dfcbfff824d89c47d834 /crypto/ripemd/rmd_dgst.c
parent3edd7ed15de229230f74c79c3d71e7c9c674cf4f (diff)
downloadopenssl-6b691a5c85ddc4e407e32781841fee5c029506cd.tar.gz
Change functions to ANSI C.
Diffstat (limited to 'crypto/ripemd/rmd_dgst.c')
-rw-r--r--crypto/ripemd/rmd_dgst.c25
1 files changed, 7 insertions, 18 deletions
diff --git a/crypto/ripemd/rmd_dgst.c b/crypto/ripemd/rmd_dgst.c
index 0a64a87f1c..659828e5bf 100644
--- a/crypto/ripemd/rmd_dgst.c
+++ b/crypto/ripemd/rmd_dgst.c
@@ -78,8 +78,7 @@ char *RMD160_version="RIPE-MD160" OPENSSL_VERSION_PTEXT;
# endif
#endif
-void RIPEMD160_Init(c)
-RIPEMD160_CTX *c;
+void RIPEMD160_Init(RIPEMD160_CTX *c)
{
c->A=RIPEMD160_A;
c->B=RIPEMD160_B;
@@ -91,10 +90,8 @@ RIPEMD160_CTX *c;
c->num=0;
}
-void RIPEMD160_Update(c, data, len)
-RIPEMD160_CTX *c;
-register unsigned char *data;
-unsigned long len;
+void RIPEMD160_Update(RIPEMD160_CTX *c, register unsigned char *data,
+ unsigned long len)
{
register ULONG *p;
int sw,sc;
@@ -222,9 +219,7 @@ unsigned long len;
}
}
-void RIPEMD160_Transform(c,b)
-RIPEMD160_CTX *c;
-unsigned char *b;
+void RIPEMD160_Transform(RIPEMD160_CTX *c, unsigned char *b)
{
ULONG p[16];
#if !defined(L_ENDIAN)
@@ -261,10 +256,7 @@ unsigned char *b;
#ifndef RMD160_ASM
-void ripemd160_block(ctx, X, num)
-RIPEMD160_CTX *ctx;
-register ULONG *X;
-int num;
+void ripemd160_block(RIPEMD160_CTX *ctx, register ULONG *X, int num)
{
register ULONG A,B,C,D,E;
ULONG a,b,c,d,e;
@@ -461,9 +453,7 @@ int num;
}
#endif
-void RIPEMD160_Final(md, c)
-unsigned char *md;
-RIPEMD160_CTX *c;
+void RIPEMD160_Final(unsigned char *md, RIPEMD160_CTX *c)
{
register int i,j;
register ULONG l;
@@ -519,8 +509,7 @@ RIPEMD160_CTX *c;
}
#ifdef undef
-int printit(l)
-unsigned long *l;
+int printit(unsigned long *l)
{
int i,ii;