util: mark externally-unused functions as static

These functions aren't used outside of sha1.c, so let's remove the
prototypes from the header-file, and mark the definitions as static.

Reviewed-by: David Heidelberg <david.heidelberg@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23163>
This commit is contained in:
Erik Faye-Lund 2023-05-21 17:08:54 +02:00 committed by Marge Bot
parent 799665c9ba
commit e44911827e
2 changed files with 2 additions and 4 deletions

View file

@ -51,7 +51,7 @@ typedef union {
/*
* Hash a single 512-bit block. This is the core of the algorithm.
*/
void
static void
SHA1Transform(uint32_t state[5], const uint8_t buffer[SHA1_BLOCK_LENGTH])
{
uint32_t a, b, c, d, e;
@ -144,7 +144,7 @@ SHA1Update(SHA1_CTX *context, const uint8_t *data, size_t len)
/*
* Add padding and return the message digest.
*/
void
static void
SHA1Pad(SHA1_CTX *context)
{
uint8_t finalcount[8];

View file

@ -27,8 +27,6 @@ typedef struct _SHA1_CTX {
} SHA1_CTX;
void SHA1Init(SHA1_CTX *);
void SHA1Pad(SHA1_CTX *);
void SHA1Transform(uint32_t [5], const uint8_t [SHA1_BLOCK_LENGTH]);
void SHA1Update(SHA1_CTX *, const uint8_t *, size_t);
void SHA1Final(uint8_t [SHA1_DIGEST_LENGTH], SHA1_CTX *);