diff --git a/CMakeLists.txt b/CMakeLists.txt index fbd08aaf0..30625d28b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -25,7 +25,6 @@ set(HEADERS src/api/interfaces/IApiListener.h src/App.h src/common/cpu/Cpu.h - src/common/crypto/Algorithm.h src/common/crypto/keccak.h src/common/interfaces/ICpuInfo.h src/common/Platform.h @@ -68,6 +67,7 @@ set(HEADERS_CRYPTO src/crypto/cn/hash.h src/crypto/cn/skein_port.h src/crypto/cn/soft_aes.h + src/crypto/common/Algorithm.h src/crypto/common/portable/mm_malloc.h src/crypto/common/VirtualMemory.h ) @@ -82,7 +82,6 @@ set(SOURCES "${SOURCES_BASE}" "${SOURCES_BASE_HTTP}" src/App.cpp - src/common/crypto/Algorithm.cpp src/common/crypto/keccak.cpp src/common/Platform.cpp src/core/config/Config.cpp @@ -107,6 +106,7 @@ set(SOURCES_CRYPTO src/crypto/cn/c_blake256.c src/crypto/cn/c_jh.c src/crypto/cn/c_skein.c + src/crypto/common/Algorithm.cpp ) if (WIN32) diff --git a/src/base/kernel/interfaces/IConfig.h b/src/base/kernel/interfaces/IConfig.h index 07849e35b..3d0407e65 100644 --- a/src/base/kernel/interfaces/IConfig.h +++ b/src/base/kernel/interfaces/IConfig.h @@ -26,7 +26,7 @@ #define XMRIG_ICONFIG_H -#include "common/crypto/Algorithm.h" +#include "crypto/common/Algorithm.h" #include "rapidjson/fwd.h" diff --git a/src/base/kernel/interfaces/IConfigTransform.h b/src/base/kernel/interfaces/IConfigTransform.h index 37ceaba1e..f88543883 100644 --- a/src/base/kernel/interfaces/IConfigTransform.h +++ b/src/base/kernel/interfaces/IConfigTransform.h @@ -26,7 +26,7 @@ #define XMRIG_ICONFIGTRANSFORM_H -#include "common/crypto/Algorithm.h" +#include "crypto/common/Algorithm.h" #include "rapidjson/fwd.h" diff --git a/src/base/net/stratum/Client.h b/src/base/net/stratum/Client.h index c7aeabfed..841e0e0b9 100644 --- a/src/base/net/stratum/Client.h +++ b/src/base/net/stratum/Client.h @@ -40,7 +40,7 @@ #include "base/net/stratum/SubmitResult.h" #include "base/net/tools/RecvBuf.h" #include "base/net/tools/Storage.h" -#include "common/crypto/Algorithm.h" +#include "crypto/common/Algorithm.h" typedef struct bio_st BIO; diff --git a/src/base/net/stratum/Job.h b/src/base/net/stratum/Job.h index 16e9a8611..5052040a5 100644 --- a/src/base/net/stratum/Job.h +++ b/src/base/net/stratum/Job.h @@ -33,7 +33,7 @@ #include "base/tools/String.h" -#include "common/crypto/Algorithm.h" +#include "crypto/common/Algorithm.h" namespace xmrig { diff --git a/src/base/net/stratum/Pool.h b/src/base/net/stratum/Pool.h index f79877078..5348271ac 100644 --- a/src/base/net/stratum/Pool.h +++ b/src/base/net/stratum/Pool.h @@ -32,7 +32,7 @@ #include "base/tools/String.h" -#include "common/crypto/Algorithm.h" +#include "crypto/common/Algorithm.h" #include "rapidjson/fwd.h" diff --git a/src/common/crypto/Algorithm.cpp b/src/crypto/common/Algorithm.cpp similarity index 99% rename from src/common/crypto/Algorithm.cpp rename to src/crypto/common/Algorithm.cpp index 10f707507..29ca9ecfe 100644 --- a/src/common/crypto/Algorithm.cpp +++ b/src/crypto/common/Algorithm.cpp @@ -30,7 +30,7 @@ #include -#include "common/crypto/Algorithm.h" +#include "crypto/common/Algorithm.h" #ifdef _MSC_VER diff --git a/src/common/crypto/Algorithm.h b/src/crypto/common/Algorithm.h similarity index 100% rename from src/common/crypto/Algorithm.h rename to src/crypto/common/Algorithm.h