diff --git a/CMakeLists.txt b/CMakeLists.txt index 22a423e5..cc0e0ae0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -548,6 +548,7 @@ add_definitions(-DCRYPTOPP_DISABLE_CLMUL) set(CRYPTOPP_LIBRARY cryptopp) add_library( cryptopp + submodules/cryptopp/aes.h submodules/cryptopp/algparam.cpp submodules/cryptopp/allocate.cpp submodules/cryptopp/asn.cpp @@ -570,11 +571,14 @@ add_library( submodules/cryptopp/hrtimer.cpp submodules/cryptopp/integer.cpp submodules/cryptopp/iterhash.cpp + submodules/cryptopp/misc.h submodules/cryptopp/misc.cpp + submodules/cryptopp/modes.h submodules/cryptopp/modes.cpp submodules/cryptopp/mqueue.cpp submodules/cryptopp/nbtheory.cpp submodules/cryptopp/oaep.cpp + submodules/cryptopp/osrng.h submodules/cryptopp/osrng.cpp submodules/cryptopp/pubkey.cpp submodules/cryptopp/queue.cpp @@ -587,8 +591,13 @@ add_library( submodules/cryptopp/sha_simd.cpp submodules/cryptopp/simple.cpp submodules/cryptopp/sse_simd.cpp + submodules/cryptopp/seckey.h + submodules/cryptopp/siphash.h + submodules/cryptopp/words.h ${CRYPTOPP_EXTRA}) +target_include_directories(cryptopp PUBLIC submodules) + if(WIN32 OR CMAKE_SYSTEM_PROCESSOR MATCHES "^(i.86|x86(_64)?)$") set(ARGON_CORE submodules/phc-winner-argon2/src/opt.c) else() diff --git a/nano/crypto_lib/random_pool.cpp b/nano/crypto_lib/random_pool.cpp index e371e306..646cd4d7 100644 --- a/nano/crypto_lib/random_pool.cpp +++ b/nano/crypto_lib/random_pool.cpp @@ -1,7 +1,7 @@ #include -#include -#include +#include +#include void nano::random_pool::generate_block (unsigned char * output, size_t size) {