summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cipher/md4.c3
-rw-r--r--cipher/md5.c3
-rw-r--r--cipher/rmd160.c3
3 files changed, 6 insertions, 3 deletions
diff --git a/cipher/md4.c b/cipher/md4.c
index 8909ec4a..22fbf8d9 100644
--- a/cipher/md4.c
+++ b/cipher/md4.c
@@ -100,7 +100,8 @@ transform ( MD4_CONTEXT *ctx, const unsigned char *data )
#ifdef WORDS_BIGENDIAN
{
int i;
- byte *p2, *p1;
+ byte *p2;
+ const byte *p1;
for(i=0, p1=data, p2=(byte*)in; i < 16; i++, p2 += 4 )
{
p2[3] = *p1++;
diff --git a/cipher/md5.c b/cipher/md5.c
index 4793882a..a98678a9 100644
--- a/cipher/md5.c
+++ b/cipher/md5.c
@@ -91,7 +91,8 @@ transform ( MD5_CONTEXT *ctx, const unsigned char *data )
#ifdef WORDS_BIGENDIAN
{
int i;
- byte *p2, *p1;
+ byte *p2;
+ const byte *p1;
for(i=0, p1=data, p2=(byte*)correct_words; i < 16; i++, p2 += 4 )
{
p2[3] = *p1++;
diff --git a/cipher/rmd160.c b/cipher/rmd160.c
index 552cff92..179a4d96 100644
--- a/cipher/rmd160.c
+++ b/cipher/rmd160.c
@@ -168,7 +168,8 @@ transform ( RMD160_CONTEXT *hd, const unsigned char *data )
u32 x[16];
{
int i;
- byte *p2, *p1;
+ byte *p2;
+ const byte *p1;
for (i=0, p1=data, p2=(byte*)x; i < 16; i++, p2 += 4 )
{
p2[3] = *p1++;