From cae05efb7b231c4d5b0505f91655628a8e9cb51a Mon Sep 17 00:00:00 2001 From: Jan Date: Tue, 22 Oct 2019 02:39:45 +0200 Subject: [PATCH] Crypto: Use CryptoLibrary source file instead of inlining in header --- src/Crypto/Impl/CryptoLibrary.cpp | 14 ++++++++++++++ src/Crypto/Impl/CryptoLibrary.h | 12 +----------- 2 files changed, 15 insertions(+), 11 deletions(-) create mode 100644 src/Crypto/Impl/CryptoLibrary.cpp 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