mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-20 08:05:45 +00:00
Crypto: Use CryptoLibrary source file instead of inlining in header
This commit is contained in:
parent
ed160e841b
commit
cae05efb7b
14
src/Crypto/Impl/CryptoLibrary.cpp
Normal file
14
src/Crypto/Impl/CryptoLibrary.cpp
Normal 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;
|
||||
}
|
||||
}
|
@ -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();
|
||||
};
|
Loading…
x
Reference in New Issue
Block a user