summaryrefslogtreecommitdiff
path: root/lib/sha1.c
diff options
context:
space:
mode:
authorpixel <pixel>2007-07-23 09:51:53 +0000
committerpixel <pixel>2007-07-23 09:51:53 +0000
commitdfb3bbb04d94823319ed33948543d57305b48efb (patch)
treef7b9acbfdefff19c5a534f64606414a702a491ac /lib/sha1.c
parent9e8aec3df93a2c3ddbfa210c623ccd481d0fe4a6 (diff)
Having some consts in the code never hurts...
Diffstat (limited to 'lib/sha1.c')
-rw-r--r--lib/sha1.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sha1.c b/lib/sha1.c
index 7064825..b761661 100644
--- a/lib/sha1.c
+++ b/lib/sha1.c
@@ -50,7 +50,7 @@ void sha1_starts( sha1_context *ctx )
ctx->state[4] = 0xC3D2E1F0;
}
-void sha1_process( sha1_context *ctx, uint8 data[64] )
+void sha1_process( sha1_context *ctx, const uint8 data[64] )
{
uint32 temp, W[16], A, B, C, D, E;
@@ -206,7 +206,7 @@ void sha1_process( sha1_context *ctx, uint8 data[64] )
ctx->state[4] += E;
}
-void sha1_update( sha1_context *ctx, uint8 *input, uint32 length )
+void sha1_update( sha1_context *ctx, const uint8 *input, uint32 length )
{
uint32 left, fill;