diff options
Diffstat (limited to 'src/util/mesa-sha1.h')
-rw-r--r-- | src/util/mesa-sha1.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/util/mesa-sha1.h b/src/util/mesa-sha1.h index ecbc708b5ea..a81aba96e94 100644 --- a/src/util/mesa-sha1.h +++ b/src/util/mesa-sha1.h @@ -32,10 +32,17 @@ extern "C" { #define mesa_sha1 _SHA1_CTX -#define _mesa_sha1_init SHA1Init +static inline void +_mesa_sha1_init(struct mesa_sha1 *ctx) +{ + SHA1Init(ctx); +} -void -_mesa_sha1_update(struct mesa_sha1 *ctx, const void *data, int size); +static inline void +_mesa_sha1_update(struct mesa_sha1 *ctx, const void *data, size_t size) +{ + SHA1Update(ctx, (const unsigned char *)data, size); +} static inline void _mesa_sha1_final(struct mesa_sha1 *ctx, unsigned char result[20]) |