iolog/blktrace: boolean conversion
[fio.git] / crc / sha512.c
index 9268a4900e01006ddae9ca2c6fc745a5e146e523..f599cdcc82061bbce70e68f83fde957fc40a741c 100644 (file)
@@ -12,7 +12,6 @@
  */
 
 #include <string.h>
-#include <inttypes.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;
 }
 
-void sha512_init(struct sha512_ctx *sctx)
+void fio_sha512_init(struct fio_sha512_ctx *sctx)
 {
        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;
 }
 
-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;