projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
radv: Override the uniform buffer offset alignment for World War Z.
[mesa.git]
/
src
/
util
/
mesa-sha1.c
diff --git
a/src/util/mesa-sha1.c
b/src/util/mesa-sha1.c
index eb882e8bd0042bef21a82478861eb399bf3c5e34..fa9284627b19e11e185c65b4b5b843bc80b9927d 100644
(file)
--- a/
src/util/mesa-sha1.c
+++ b/
src/util/mesa-sha1.c
@@
-27,13
+27,6
@@
#include "sha1/sha1.h"
#include "mesa-sha1.h"
#include "sha1/sha1.h"
#include "mesa-sha1.h"
-int
-_mesa_sha1_update(struct mesa_sha1 *ctx, const void *data, int size)
-{
- SHA1Update(ctx, data, size);
- return 1;
-}
-
void
_mesa_sha1_compute(const void *data, size_t size, unsigned char result[20])
{
void
_mesa_sha1_compute(const void *data, size_t size, unsigned char result[20])
{
@@
-44,7
+37,7
@@
_mesa_sha1_compute(const void *data, size_t size, unsigned char result[20])
_mesa_sha1_final(&ctx, result);
}
_mesa_sha1_final(&ctx, result);
}
-char *
+void
_mesa_sha1_format(char *buf, const unsigned char *sha1)
{
static const char hex_digits[] = "0123456789abcdef";
_mesa_sha1_format(char *buf, const unsigned char *sha1)
{
static const char hex_digits[] = "0123456789abcdef";
@@
-55,6
+48,4
@@
_mesa_sha1_format(char *buf, const unsigned char *sha1)
buf[i + 1] = hex_digits[sha1[i >> 1] & 0x0f];
}
buf[i] = '\0';
buf[i + 1] = hex_digits[sha1[i >> 1] & 0x0f];
}
buf[i] = '\0';
-
- return buf;
}
}