/*
- * Copyright (C) 2007-2009 Andre Noll <maan@systemlinux.org>
+ * Copyright (C) 2007-2009 Andre Noll <maan@tuebingen.mpg.de>
*
* Licensed under the GPL v2. For licencing details see COPYING.
*/
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;
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];