projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
io_uring: add option for non-vectored read/write commands
[fio.git]
/
crc
/
sha512.c
diff --git
a/crc/sha512.c
b/crc/sha512.c
index 9268a4900e01006ddae9ca2c6fc745a5e146e523..f599cdcc82061bbce70e68f83fde957fc40a741c 100644
(file)
--- a/
crc/sha512.c
+++ b/
crc/sha512.c
@@
-12,7
+12,6
@@
*/
#include <string.h>
*/
#include <string.h>
-#include <inttypes.h>
#include "../lib/bswap.h"
#include "sha512.h"
#include "../lib/bswap.h"
#include "sha512.h"
@@
-146,7
+145,7
@@
static void sha512_transform(uint64_t *state, uint64_t *W, const uint8_t *input)
a = b = c = d = e = f = g = h = t1 = t2 = 0;
}
a = b = c = d = e = f = g = h = t1 = t2 = 0;
}
-void
sha512_init(struct
sha512_ctx *sctx)
+void
fio_sha512_init(struct fio_
sha512_ctx *sctx)
{
sctx->state[0] = H0;
sctx->state[1] = H1;
{
sctx->state[0] = H0;
sctx->state[1] = H1;
@@
-159,8
+158,8
@@
void sha512_init(struct sha512_ctx *sctx)
sctx->count[0] = sctx->count[1] = sctx->count[2] = sctx->count[3] = 0;
}
sctx->count[0] = sctx->count[1] = sctx->count[2] = sctx->count[3] = 0;
}
-void
sha512_update(struct
sha512_ctx *sctx, const uint8_t *data,
- unsigned int len)
+void
fio_sha512_update(struct fio_
sha512_ctx *sctx, const uint8_t *data,
+
unsigned int len)
{
unsigned int i, idx, part_len;
{
unsigned int i, idx, part_len;