projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move the lib/ stuff around a bit
[fio.git]
/
crc
/
sha512.c
diff --git
a/crc/sha512.c
b/crc/sha512.c
index 1f9ebb434baf2707f909d33c63b48ae84ed06a64..0d44ace580dbe1795a000d68c987775c63b786ff 100644
(file)
--- a/
crc/sha512.c
+++ b/
crc/sha512.c
@@
-13,17
+13,10
@@
#include <string.h>
#include <inttypes.h>
#include <string.h>
#include <inttypes.h>
-#include <byteswap.h>
-#include <endian.h>
+#include "../lib/bswap.h"
#include "sha512.h"
#include "sha512.h"
-#if __BYTE_ORDER == __LITTLE_ENDIAN
-#define __be64_to_cpu(x) __bswap_64(x)
-#else
-#define __be64_to_cpu(x) (x)
-#endif
-
#define SHA384_DIGEST_SIZE 48
#define SHA512_DIGEST_SIZE 64
#define SHA384_HMAC_BLOCK_SIZE 128
#define SHA384_DIGEST_SIZE 48
#define SHA512_DIGEST_SIZE 64
#define SHA384_HMAC_BLOCK_SIZE 128