summaryrefslogtreecommitdiffstats
path: root/crypto/mdc2/mdc2dgst.c
diff options
context:
space:
mode:
authorUlf Möller <ulf@openssl.org>2000-02-03 18:22:01 +0000
committerUlf Möller <ulf@openssl.org>2000-02-03 18:22:01 +0000
commit9dbc41d7eed7d69da54dc81082794845c50ad482 (patch)
tree3c59e6df13deb5eed99501dc7fffac681fb7e1eb /crypto/mdc2/mdc2dgst.c
parent82fc1d9c28e834549f61e4c91b3f6bbdf4c48153 (diff)
Document hash functions.
Diffstat (limited to 'crypto/mdc2/mdc2dgst.c')
-rw-r--r--crypto/mdc2/mdc2dgst.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/mdc2/mdc2dgst.c b/crypto/mdc2/mdc2dgst.c
index aed715c69d..c630a24c2e 100644
--- a/crypto/mdc2/mdc2dgst.c
+++ b/crypto/mdc2/mdc2dgst.c
@@ -74,7 +74,7 @@
*((c)++)=(unsigned char)(((l)>>16L)&0xff), \
*((c)++)=(unsigned char)(((l)>>24L)&0xff))
-static void mdc2_body(MDC2_CTX *c, unsigned char *in, unsigned int len);
+static void mdc2_body(MDC2_CTX *c, const unsigned char *in, unsigned int len);
void MDC2_Init(MDC2_CTX *c)
{
c->num=0;
@@ -83,7 +83,7 @@ void MDC2_Init(MDC2_CTX *c)
memset(&(c->hh[0]),0x25,MDC2_BLOCK);
}
-void MDC2_Update(MDC2_CTX *c, register unsigned char *in, unsigned long len)
+void MDC2_Update(MDC2_CTX *c, const unsigned char *in, unsigned long len)
{
int i,j;
@@ -118,7 +118,7 @@ void MDC2_Update(MDC2_CTX *c, register unsigned char *in, unsigned long len)
}
}
-static void mdc2_body(MDC2_CTX *c, unsigned char *in, unsigned int len)
+static void mdc2_body(MDC2_CTX *c, const unsigned char *in, unsigned int len)
{
register DES_LONG tin0,tin1;
register DES_LONG ttin0,ttin1;