@@ -36,12 +36,12 @@ */ #define SHA1CircularShift(bits,word) \ (((word) << (bits)) | ((word) >> (32-(bits)))) /* Local Function Prototyptes */ -void SHA1PadMessage(SHA1Context *); -void SHA1ProcessMessageBlock(SHA1Context *); +static void SHA1PadMessage(SHA1Context *); +static void SHA1ProcessMessageBlock(SHA1Context *); /* * SHA1Reset * * Description: @@ -54,11 +54,11 @@ * * Returns: * sha Error Code. * */ -int SHA1Reset(SHA1Context *context) +static int SHA1Reset(SHA1Context *context) { if (!context) { return shaNull; } @@ -96,11 +96,11 @@ * * Returns: * sha Error Code. * */ -int SHA1Result( SHA1Context *context, +static int SHA1Result( SHA1Context *context, uint8_t Message_Digest[SHA1HashSize]) { int i; if (!context || !Message_Digest) @@ -153,11 +153,11 @@ * * Returns: * sha Error Code. * */ -int SHA1Input( SHA1Context *context, +static int SHA1Input( SHA1Context *context, const uint8_t *message_array, unsigned length) { if (!length) { @@ -225,11 +225,11 @@ * single character names, were used because those were the * names used in the publication. * * */ -void SHA1ProcessMessageBlock(SHA1Context *context) +static void SHA1ProcessMessageBlock(SHA1Context *context) { const uint32_t K[] = { /* Constants defined in SHA-1 */ 0x5A827999, 0x6ED9EBA1, 0x8F1BBCDC, @@ -335,11 +335,11 @@ * Returns: * Nothing. * */ -void SHA1PadMessage(SHA1Context *context) +static void SHA1PadMessage(SHA1Context *context) { /* * Check to see if the current message block is too small to hold * the initial padding bits and length. If so, we will pad the * block, process it, and then continue padding into a second