summaryrefslogtreecommitdiffstats
path: root/lib/libmd/md4c.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1994-11-07 20:48:35 +0000
committerphk <phk@FreeBSD.org>1994-11-07 20:48:35 +0000
commit1331c46d810c83bbf73d1d5f87b26a0c192f778e (patch)
tree363e9941ec227dcd459032b2e309e2bb1975a8c3 /lib/libmd/md4c.c
parent4d684eab18a4ee4fe1eb967ae82991e2b20a43eb (diff)
downloadFreeBSD-src-1331c46d810c83bbf73d1d5f87b26a0c192f778e.zip
FreeBSD-src-1331c46d810c83bbf73d1d5f87b26a0c192f778e.tar.gz
Added "const" to the arguments here and there.
Diffstat (limited to 'lib/libmd/md4c.c')
-rw-r--r--lib/libmd/md4c.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libmd/md4c.c b/lib/libmd/md4c.c
index 07cb4e6..0f42905 100644
--- a/lib/libmd/md4c.c
+++ b/lib/libmd/md4c.c
@@ -46,11 +46,11 @@ typedef unsigned long int UINT4;
#define S33 11
#define S34 15
-static void MD4Transform PROTO_LIST ((UINT4 [4], unsigned char [64]));
+static void MD4Transform PROTO_LIST ((UINT4 [4], const unsigned char [64]));
static void Encode PROTO_LIST
((unsigned char *, UINT4 *, unsigned int));
static void Decode PROTO_LIST
- ((UINT4 *, unsigned char *, unsigned int));
+ ((UINT4 *, const unsigned char *, unsigned int));
static unsigned char PADDING[64] = {
0x80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
@@ -104,7 +104,7 @@ MD4_CTX *context; /* context */
*/
void MD4Update (context, input, inputLen)
MD4_CTX *context; /* context */
-unsigned char *input; /* input block */
+const unsigned char *input; /* input block */
unsigned int inputLen; /* length of input block */
{
unsigned int i, index, partLen;
@@ -172,7 +172,7 @@ MD4_CTX *context; /* context */
*/
static void MD4Transform (state, block)
UINT4 state[4];
-unsigned char block[64];
+const unsigned char block[64];
{
UINT4 a = state[0], b = state[1], c = state[2], d = state[3], x[16];
@@ -266,7 +266,7 @@ unsigned int len;
static void Decode (output, input, len)
UINT4 *output;
-unsigned char *input;
+const unsigned char *input;
unsigned int len;
{
unsigned int i, j;
OpenPOWER on IntegriCloud