diff --git a/src/Crypto/Impl/CryptoLibrary.cpp b/src/Crypto/Impl/CryptoLibrary.cpp new file mode 100644 index 00000000..698467da --- /dev/null +++ b/src/Crypto/Impl/CryptoLibrary.cpp @@ -0,0 +1,14 @@ +#include "CryptoLibrary.h" +#include "tommath.h" + +void CryptoLibrary::Init() +{ + static bool initialized = false; + + if (!initialized) + { + initialized = true; + + ltc_mp = ltm_desc; + } +} \ No newline at end of file diff --git a/src/Crypto/Impl/CryptoLibrary.h b/src/Crypto/Impl/CryptoLibrary.h index f04d5761..c1d0da62 100644 --- a/src/Crypto/Impl/CryptoLibrary.h +++ b/src/Crypto/Impl/CryptoLibrary.h @@ -6,15 +6,5 @@ class CryptoLibrary { public: - static void Init() - { - static bool initialized = false; - - if(!initialized) - { - initialized = true; - - ltc_mp = ltm_desc; - } - } + static void Init(); }; \ No newline at end of file