From: Andre Noll Date: Thu, 24 Mar 2016 07:01:31 +0000 (+0000) Subject: sha1: Make private functions static. X-Git-Tag: v0.1.3~5 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=c08e5f91757605bee3ab1182cc5506b3ade6568d;p=osl.git sha1: Make private functions static. These are not exported in osl.h or osl-core.h, so the symbols should not be exposed to applications. --- diff --git a/sha1.c b/sha1.c index 9ab6214..3346d76 100644 --- a/sha1.c +++ b/sha1.c @@ -235,7 +235,7 @@ static void blk_SHA1_Block(blk_SHA_CTX *ctx, const unsigned int *data) ctx->H[4] += E; } -void blk_SHA1_Init(blk_SHA_CTX *ctx) +static void blk_SHA1_Init(blk_SHA_CTX *ctx) { ctx->size = 0; @@ -247,7 +247,7 @@ void blk_SHA1_Init(blk_SHA_CTX *ctx) 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; @@ -275,7 +275,7 @@ void blk_SHA1_Update(blk_SHA_CTX *ctx, const void *data, unsigned long len) 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];