diff options
author | pixel <pixel> | 2007-07-23 09:51:53 +0000 |
---|---|---|
committer | pixel <pixel> | 2007-07-23 09:51:53 +0000 |
commit | dfb3bbb04d94823319ed33948543d57305b48efb (patch) | |
tree | f7b9acbfdefff19c5a534f64606414a702a491ac /lib/sha1.c | |
parent | 9e8aec3df93a2c3ddbfa210c623ccd481d0fe4a6 (diff) |
Having some consts in the code never hurts...
Diffstat (limited to 'lib/sha1.c')
-rw-r--r-- | lib/sha1.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |