diff options
author | Ulf Möller <ulf@openssl.org> | 2000-02-03 18:22:01 +0000 |
---|---|---|
committer | Ulf Möller <ulf@openssl.org> | 2000-02-03 18:22:01 +0000 |
commit | 9dbc41d7eed7d69da54dc81082794845c50ad482 (patch) | |
tree | 3c59e6df13deb5eed99501dc7fffac681fb7e1eb /crypto/md2 | |
parent | 82fc1d9c28e834549f61e4c91b3f6bbdf4c48153 (diff) | |
download | openssl-new-9dbc41d7eed7d69da54dc81082794845c50ad482.tar.gz |
Document hash functions.
Diffstat (limited to 'crypto/md2')
-rw-r--r-- | crypto/md2/md2.h | 4 | ||||
-rw-r--r-- | crypto/md2/md2_dgst.c | 2 | ||||
-rw-r--r-- | crypto/md2/md2_one.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/crypto/md2/md2.h b/crypto/md2/md2.h index 0d3592506c..582bffb859 100644 --- a/crypto/md2/md2.h +++ b/crypto/md2/md2.h @@ -81,9 +81,9 @@ typedef struct MD2state_st const char *MD2_options(void); void MD2_Init(MD2_CTX *c); -void MD2_Update(MD2_CTX *c, register unsigned char *data, unsigned long len); +void MD2_Update(MD2_CTX *c, const unsigned char *data, unsigned long len); void MD2_Final(unsigned char *md, MD2_CTX *c); -unsigned char *MD2(unsigned char *d, unsigned long n,unsigned char *md); +unsigned char *MD2(const unsigned char *d, unsigned long n,unsigned char *md); #ifdef __cplusplus } #endif diff --git a/crypto/md2/md2_dgst.c b/crypto/md2/md2_dgst.c index c7d8d6aef5..b6c2f15c3c 100644 --- a/crypto/md2/md2_dgst.c +++ b/crypto/md2/md2_dgst.c @@ -123,7 +123,7 @@ void MD2_Init(MD2_CTX *c) memset(c->data,0,MD2_BLOCK); } -void MD2_Update(MD2_CTX *c, register unsigned char *data, unsigned long len) +void MD2_Update(MD2_CTX *c, const unsigned char *data, unsigned long len) { register UCHAR *p; diff --git a/crypto/md2/md2_one.c b/crypto/md2/md2_one.c index 7157299d95..b12c37ce4d 100644 --- a/crypto/md2/md2_one.c +++ b/crypto/md2/md2_one.c @@ -63,7 +63,7 @@ /* This is a separate file so that #defines in cryptlib.h can * map my MD functions to different names */ -unsigned char *MD2(unsigned char *d, unsigned long n, unsigned char *md) +unsigned char *MD2(const unsigned char *d, unsigned long n, unsigned char *md) { MD2_CTX c; static unsigned char m[MD2_DIGEST_LENGTH]; |