Crypto: Use CryptoLibrary source file instead of inlining in header

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

No files matched your search

+14
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;
}
}
+1 -11
View File
@@ -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();
};