*/
#include <string.h>
#include <inttypes.h>
-#include <byteswap.h>
-#include <endian.h>
+#include "../lib/bswap.h"
#include "sha256.h"
-#if __BYTE_ORDER == __LITTLE_ENDIAN
-#define __be32_to_cpu(x) __bswap_32(x)
-#else
-#define __be32_to_cpu(x) (x)
-#endif
-
#define SHA256_DIGEST_SIZE 32
#define SHA256_HMAC_BLOCK_SIZE 64