diff --git a/CMakeLists.txt b/CMakeLists.txt index c8a9d2f..a2d20fd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -156,6 +156,7 @@ target_include_directories(common PUBLIC "${PROJECT_BINARY_DIR}" # looking for generated sources #"${PROJECT_BINARY_DIR}/include" "${CMAKE_INSTALL_PREFIX}/include" + "${CMAKE_INSTALL_PREFIX}/include/keccak" ) if(NOT YOCTO) diff --git a/WORKSPACE b/WORKSPACE index f72733a..9e7f46c 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -17,7 +17,7 @@ bazel_skylib_workspace() git_repository( name = "rules_iota", - commit = "49b2674474dedd77d46fddf75330ea7dcd23f0d3", + commit = "2d15c55f12cff0db106f45866312f61314c583cd", remote = "https://github.com/iotaledger/rules_iota.git", ) diff --git a/cmake/keccak.cmake b/cmake/keccak.cmake index 6d14c8b..416421f 100644 --- a/cmake/keccak.cmake +++ b/cmake/keccak.cmake @@ -13,8 +13,8 @@ if (NOT __KECCAK_INCLUDED) PREFIX ${PROJECT_BINARY_DIR}/keccak DOWNLOAD_DIR ${PROJECT_BINARY_DIR}/download DOWNLOAD_NAME keccak_87944d97ee18978a.tar.gz - URL https://github.com/XKCP/XKCP/archive/87944d97ee18978aa0ea8486edbb7acb08a8564a.tar.gz - URL_HASH SHA256=e6434f08d14ef46bce79d4c99e120430c843288003fe5d5d20dcbcb182b73c31 + URL https://github.com/XKCP/XKCP/archive/a7a105cefc172178c3c9bb7e5f0768e0b226016b.tar.gz + URL_HASH SHA256=245418d6dd84c7eabfa77c93c5b0eff32c405e691048589bb8d6a253d139bfa3 CONFIGURE_COMMAND "" INSTALL_COMMAND "" BUILD_COMMAND "" diff --git a/common/crypto/kerl/kerl.c b/common/crypto/kerl/kerl.c index 9b578ee..c9be414 100644 --- a/common/crypto/kerl/kerl.c +++ b/common/crypto/kerl/kerl.c @@ -19,7 +19,7 @@ #define SUFFIX 0x01 void kerl_init(Kerl* const ctx) { - uint8_t succ = Keccak_HashInitialize(&ctx->keccak, 832, 768, 384, 0x01) == SUCCESS; + uint8_t succ = Keccak_HashInitialize(&ctx->keccak, 832, 768, 384, 0x01) == KECCAK_SUCCESS; assert(succ); (void)succ; } diff --git a/common/crypto/kerl/kerl.h b/common/crypto/kerl/kerl.h index ca3155d..5de0f7f 100644 --- a/common/crypto/kerl/kerl.h +++ b/common/crypto/kerl/kerl.h @@ -8,11 +8,7 @@ #ifndef __COMMON_CRYPTO_KERL_KERL_H__ #define __COMMON_CRYPTO_KERL_KERL_H__ -#ifdef __XTENSA__ #include "FIPS202/KeccakHash.h" -#else -#include -#endif #include "common/stdint.h" #include "common/trinary/trits.h"