Crypto: Use CryptoLibrary source file instead of inlining in header

This commit is contained in:
Jan 2019-10-22 02:39:45 +02:00
parent ed160e841b
commit cae05efb7b
2 changed files with 15 additions and 11 deletions

View File

@ -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;
}
}

View File

@ -6,15 +6,5 @@
class CryptoLibrary class CryptoLibrary
{ {
public: public:
static void Init() static void Init();
{
static bool initialized = false;
if(!initialized)
{
initialized = true;
ltc_mp = ltm_desc;
}
}
}; };