2013-03-05 07:32:27 +01:00
|
|
|
#include "cipher/BlockCipher.h"
|
|
|
|
|
|
|
|
// TODO: add ifdef when OpenSSL becomes optional.
|
|
|
|
#include "cipher/openssl.h"
|
2013-03-05 07:36:32 +01:00
|
|
|
#include "cipher/NullCiphers.h"
|
2013-03-05 07:32:27 +01:00
|
|
|
|
|
|
|
namespace encfs {
|
|
|
|
|
|
|
|
Registry<BlockCipher>& BlockCipher::GetRegistry()
|
|
|
|
{
|
|
|
|
static Registry<BlockCipher> registry;
|
|
|
|
static bool first = true;
|
|
|
|
if (first)
|
|
|
|
{
|
|
|
|
OpenSSL::registerCiphers();
|
2013-03-05 07:36:32 +01:00
|
|
|
NullCiphers::registerCiphers();
|
2013-03-05 07:32:27 +01:00
|
|
|
first = false;
|
|
|
|
}
|
|
|
|
return registry;
|
|
|
|
}
|
|
|
|
|
|
|
|
BlockCipher::BlockCipher()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
BlockCipher::~BlockCipher()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace encfs
|
|
|
|
|