Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/cr-marcstevens/sha1collisiondetection.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcr-marcstevens <github@marc-stevens.nl>2017-03-03 18:23:36 +0300
committercr-marcstevens <github@marc-stevens.nl>2017-03-03 18:23:36 +0300
commit42ae4fb7b159700787ca2f6e2dff79a0a209ffe3 (patch)
treee73c9eade6a29407575bf1e40d87171fb96d18eb
parent82456cb78f00c7454d39c352c96fae96b60e0d63 (diff)
changed unsigned to size_t
-rw-r--r--lib/sha1.c2
-rw-r--r--lib/sha1.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/sha1.c b/lib/sha1.c
index 1317b25..70b807f 100644
--- a/lib/sha1.c
+++ b/lib/sha1.c
@@ -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)
diff --git a/lib/sha1.h b/lib/sha1.h
index c383b1c..a99bce2 100644
--- a/lib/sha1.h
+++ b/lib/sha1.h
@@ -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 */