#include "Elligator.h" namespace i2p { namespace crypto { Elligator2::Elligator2 () { } Elligator2::~Elligator2 () { } static std::unique_ptr g_Elligator; std::unique_ptr& GetElligator () { if (!g_Elligator) { auto el = new Elligator2(); if (!g_Elligator) // make sure it was not created already g_Elligator.reset (el); else delete el; } return g_Elligator; } } }