summaryrefslogtreecommitdiff
path: root/lib/sha256.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sha256.c')
-rw-r--r--lib/sha256.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sha256.c b/lib/sha256.c
index 0b94581..986f3e2 100644
--- a/lib/sha256.c
+++ b/lib/sha256.c
@@ -53,7 +53,7 @@ void sha256_starts( sha256_context *ctx )
ctx->state[7] = 0x5BE0CD19;
}
-void sha256_process( sha256_context *ctx, uint8 data[64] )
+void sha256_process( sha256_context *ctx, const uint8 data[64] )
{
uint32 temp1, temp2, W[64];
uint32 A, B, C, D, E, F, G, H;
@@ -184,7 +184,7 @@ void sha256_process( sha256_context *ctx, uint8 data[64] )
ctx->state[7] += H;
}
-void sha256_update( sha256_context *ctx, uint8 *input, uint32 length )
+void sha256_update( sha256_context *ctx, const uint8 *input, uint32 length )
{
uint32 left, fill;