X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libhashkit%2Fmd5.c;h=025c666294b8bdd09fc1a57c62697086dfb32525;hb=81416ab2d4fe60d5c71ea11326a351993c539002;hp=a968548d6c8958df8a6499048143a09be37122ab;hpb=ec35c1ba09b8eb49505d32d23a2b679be3c45add;p=m6w6%2Flibmemcached diff --git a/libhashkit/md5.c b/libhashkit/md5.c index a968548d..025c6662 100644 --- a/libhashkit/md5.c +++ b/libhashkit/md5.c @@ -1,5 +1,5 @@ /* - This Library has been modified from its original form by + This Library has been modified from its original form by Brian Aker (brian@tangent.org) See below for original Copyright. @@ -125,7 +125,7 @@ Rotation is separate from addition to prevent recomputation. } -/* +/* Just a simple method for getting the signature result must be == 16 */ @@ -169,8 +169,8 @@ static void MD5Update ( /* Update number of bits */ if ((context->count[0] += ((UINT4)inputLen << 3)) - < ((UINT4)inputLen << 3)) - context->count[1]++; + < ((UINT4)inputLen << 3)) + context->count[1]++; context->count[1] += ((UINT4)inputLen >> 29); partLen = 64 - idx; @@ -352,9 +352,10 @@ unsigned int len) (((UINT4)input[j+2]) << 16) | (((UINT4)input[j+3]) << 24); } -uint32_t hashkit_md5(const char *key, size_t key_length, void *context __attribute__((unused))) +uint32_t hashkit_md5(const char *key, size_t key_length, void *context) { unsigned char results[16]; + (void)context; md5_signature((unsigned char*)key, (unsigned int)key_length, results);