diff options
author | cr-marcstevens <github@marc-stevens.nl> | 2017-03-03 18:23:36 +0300 |
---|---|---|
committer | cr-marcstevens <github@marc-stevens.nl> | 2017-03-03 18:23:36 +0300 |
commit | 42ae4fb7b159700787ca2f6e2dff79a0a209ffe3 (patch) | |
tree | e73c9eade6a29407575bf1e40d87171fb96d18eb | |
parent | 82456cb78f00c7454d39c352c96fae96b60e0d63 (diff) |
changed unsigned to size_t
-rw-r--r-- | lib/sha1.c | 2 | ||||
-rw-r--r-- | lib/sha1.h | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -1075,7 +1075,7 @@ void SHA1DCSetCallback(SHA1_CTX* ctx, collision_block_callback callback) ctx->callback = callback; } -void SHA1DCUpdate(SHA1_CTX* ctx, const char* buf, unsigned len) +void SHA1DCUpdate(SHA1_CTX* ctx, const char* buf, size_t len) { unsigned left, fill; if (len == 0) @@ -91,7 +91,7 @@ void SHA1DCSetDetectReducedRoundCollision(SHA1_CTX*, int); void SHA1DCSetCallback(SHA1_CTX*, collision_block_callback); /* update SHA-1 context with buffer contents */ -void SHA1DCUpdate(SHA1_CTX*, const char*, unsigned); +void SHA1DCUpdate(SHA1_CTX*, const char*, size_t); /* obtain SHA-1 hash from SHA-1 context */ /* returns: 0 = no collision detected, otherwise = collision found => warn user for active attack */ |