aboutsummaryrefslogtreecommitdiff
path: root/src/sha1/sha1.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sha1/sha1.c')
-rw-r--r--src/sha1/sha1.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sha1/sha1.c b/src/sha1/sha1.c
index 3729550..c0052b7 100644
--- a/src/sha1/sha1.c
+++ b/src/sha1/sha1.c
@@ -104,7 +104,7 @@ A million repetitions of "a"
/* Hash a single 512-bit block. This is the core of the algorithm. */
-void SHA1Transform(uint32_t state[5], const unsigned char buffer[64])
+void SHA1Transform(uint32_t state[5], const unsigned char* buffer)
{
uint32_t a, b, c, d, e;
typedef union {
@@ -193,7 +193,7 @@ uint32_t j;
memcpy(&context->buffer[j], data, (i = 64-j));
SHA1Transform(context->state, context->buffer);
for ( ; i + 63 < len; i += 64) {
- SHA1Transform(context->state, &data[i]);
+ SHA1Transform(context->state, data + i);
}
j = 0;
}