packages feed

SecureHash-SHA3 0.1.0.1 → 0.1.0.2

raw patch · 3 files changed

+10/−7 lines, 3 filesdep ~base

Dependency ranges changed: base

Files

CHANGELOG.md view
@@ -1,5 +1,5 @@ # Revision history for SecureHash-SHA3 -## 0.1.0.0 -- YYYY-mm-dd+## 0.1.0.2 -- 2018-12-01 -* First version. Released on an unsuspecting world.+* First version that builds with both GCC and CLANG
SecureHash-SHA3.cabal view
@@ -11,7 +11,7 @@ -- PVP summary:      +-+------- breaking API changes --                   | | +----- non-breaking API additions --                   | | | +--- code changes with no API change-version:             0.1.0.1+version:             0.1.0.2  -- A short (one-line) description of the package. synopsis:            simple static linked SHA3 using private symbols and the ref impl
cbits/CTS_SHA3.h view
@@ -191,14 +191,17 @@ // This test works on GCC and CLANG, which is good enough for me #if defined(__LITTLE_ENDIAN__) && !defined(LITTLE_ENDIAN)  \   || (defined(__BYTE_ORDER__) && __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__)-#define LITTLE_ENDIAN-endif+#ifndef CTS_TEST_LITTLE_ENDIAN+#define CTS_TEST_LITTLE_ENDIAN+#endif+#endif -#if !(defined(__LITTLE_ENDIAN__) || defined(__BIG_ENDIAN__)  || defined (__ORDER_LITTLE_ENDIAN__))+#if !(defined(__LITTLE_ENDIAN__) || defined(__BIG_ENDIAN__)  \+      || defined(__BYTE_ORDER__) || defined (__ORDER_LITTLE_ENDIAN__) ) #error "This C code currently assumes a CLANG / GCC compatible cpp env" #endif -#ifdef LITTLE_ENDIAN+#ifdef CTS_TEST_LITTLE_ENDIAN     #define readLane(x, y)          (((tKeccakLane*)state)[i(x, y)])     #define writeLane(x, y, lane)   (((tKeccakLane*)state)[i(x, y)]) = (lane)     #define XORLane(x, y, lane)     (((tKeccakLane*)state)[i(x, y)]) ^= (lane)