ctx->H[4] += E;
}
-void blk_SHA1_Init(blk_SHA_CTX *ctx)
+static void blk_SHA1_Init(blk_SHA_CTX *ctx)
{
ctx->size = 0;
ctx->H[4] = 0xc3d2e1f0;
}
-void blk_SHA1_Update(blk_SHA_CTX *ctx, const void *data, unsigned long len)
+static void blk_SHA1_Update(blk_SHA_CTX *ctx, const void *data, unsigned long len)
{
- int lenW = ctx->size & 63;
+ unsigned lenW = ctx->size & 63;
ctx->size += len;
/* Read the data into W and process blocks as they get full */
if (lenW) {
- int left = 64 - lenW;
+ unsigned left = 64 - lenW;
if (len < left)
left = len;
memcpy(lenW + (char *)ctx->W, data, left);
memcpy(ctx->W, data, len);
}
-void blk_SHA1_Final(unsigned char hashout[20], blk_SHA_CTX *ctx)
+static void blk_SHA1_Final(unsigned char hashout[20], blk_SHA_CTX *ctx)
{
static const unsigned char pad[64] = { 0x80 };
unsigned int padlen[2];