aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--includes/sha1.h2
-rw-r--r--modules/benchmark/sha1.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/includes/sha1.h b/includes/sha1.h
index 573ff8ac..8b5c0b2f 100644
--- a/includes/sha1.h
+++ b/includes/sha1.h
@@ -17,7 +17,7 @@
typedef struct {
- guint32 state[5];
+ guint32 state[20];
guint32 count[2];
guchar buffer[64];
} SHA1_CTX;
diff --git a/modules/benchmark/sha1.c b/modules/benchmark/sha1.c
index b94ce254..3b213218 100644
--- a/modules/benchmark/sha1.c
+++ b/modules/benchmark/sha1.c
@@ -47,7 +47,7 @@ A million repetitions of "a"
/* Hash a single 512-bit block. This is the core of the algorithm. */
-void SHA1Transform(guint32 state[5], guchar buffer[64])
+void SHA1Transform(guint32 state[20], guchar buffer[64])
{
guint32 a, b, c, d, e;
typedef union {