#ifdef WORDS_BIGENDIAN
static void
-byteSwap(uint32_t *buf, unsigned words)
+byteSwap(uint32_t *buf, int words)
{
md5byte *p = (md5byte *)buf;
byteSwap(ctx->buf, 4);
memcpy(digest, ctx->buf, 16);
- memset(ctx, 0, sizeof(ctx)); /* In case it's sensitive */
+ memset(ctx, 0, sizeof *ctx); /* In case it's sensitive */
}
#ifndef ASM_MD5
return ctx;
}
-static void md5_update(void *sst, uint8_t const *buf, uint32_t len)
+static void md5_update(void *sst, const void *buf, int32_t len)
{
struct MD5Context *ctx=sst;