summaryrefslogtreecommitdiffstats
path: root/src/lib/crypto/sha1
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/crypto/sha1')
-rw-r--r--src/lib/crypto/sha1/shs.c2
-rw-r--r--src/lib/crypto/sha1/shs.h2
-rw-r--r--src/lib/crypto/sha1/t_shs3.c8
3 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/crypto/sha1/shs.c b/src/lib/crypto/sha1/shs.c
index 0d7daa6062..a027fd76d1 100644
--- a/src/lib/crypto/sha1/shs.c
+++ b/src/lib/crypto/sha1/shs.c
@@ -240,7 +240,7 @@ void SHSTransform(SHS_LONG *digest, const SHS_LONG *data)
/* Update SHS for a block of data */
-void shsUpdate(SHS_INFO *shsInfo, const SHS_BYTE *buffer, int count)
+void shsUpdate(SHS_INFO *shsInfo, const SHS_BYTE *buffer, unsigned int count)
{
SHS_LONG tmp;
int dataCount, canfill;
diff --git a/src/lib/crypto/sha1/shs.h b/src/lib/crypto/sha1/shs.h
index 96422c4689..6dcb41b408 100644
--- a/src/lib/crypto/sha1/shs.h
+++ b/src/lib/crypto/sha1/shs.h
@@ -27,7 +27,7 @@ typedef struct {
/* Message digest functions (shs.c) */
void shsInit(SHS_INFO *shsInfo);
-void shsUpdate(SHS_INFO *shsInfo, const SHS_BYTE *buffer, int count);
+void shsUpdate(SHS_INFO *shsInfo, const SHS_BYTE *buffer, unsigned int count);
void shsFinal(SHS_INFO *shsInfo);
diff --git a/src/lib/crypto/sha1/t_shs3.c b/src/lib/crypto/sha1/t_shs3.c
index cefec45eb5..96b36a76e9 100644
--- a/src/lib/crypto/sha1/t_shs3.c
+++ b/src/lib/crypto/sha1/t_shs3.c
@@ -357,7 +357,7 @@ static void test6(void)
} sdata;
unsigned char digest[SHS_DIGESTSIZE];
int failed;
- int i, j;
+ unsigned int i, j;
printf("Running SHS test 6 ...\n");
sdata.pad1 = 0x12345678;
@@ -470,12 +470,12 @@ unsigned char results7[SHS_DIGESTSIZE] = {
0x89,0x41,0x65,0xce,0x76,0xc1,0xd1,0xd1,0xc3,0x6f,
0xab,0x92,0x79,0x30,0x01,0x71,0x63,0x1f,0x74,0xfe};
-int jfsize[] = {0,1,31,32,
+unsigned int jfsize[] = {0,1,31,32,
33,55,56,63,
64,65,71,72,
73,95,96,97,
119,120,123,127};
-int kfsize[] = {0,1,31,32,33,55,56,63};
+unsigned int kfsize[] = {0,1,31,32,33,55,56,63};
static void test7(void)
{
@@ -488,7 +488,7 @@ static void test7(void)
} sdata;
unsigned char digest[SHS_DIGESTSIZE];
int failed;
- int i, j, k, l;
+ unsigned int i, j, k, l;
printf("Running SHS test 7 ...\n");
sdata.pad1 = 0x12345678;