mirror of
https://github.com/vgough/encfs.git
synced 2024-11-25 01:13:12 +01:00
a89752dfe7
git-svn-id: http://encfs.googlecode.com/svn/trunk@121 db9cf616-1c43-0410-9cb8-a902689de0d6
37 lines
664 B
C++
37 lines
664 B
C++
#include "cipher/BlockCipher.h"
|
|
|
|
#include "base/config.h"
|
|
|
|
#ifdef WITH_OPENSSL
|
|
#include "cipher/openssl.h"
|
|
#endif
|
|
#ifdef WITH_COMMON_CRYPTO
|
|
#include "cipher/CommonCrypto.h"
|
|
#endif
|
|
|
|
#include "cipher/NullCiphers.h"
|
|
|
|
namespace encfs {
|
|
|
|
Registry<BlockCipher>& BlockCipher::GetRegistry() {
|
|
static Registry<BlockCipher> registry;
|
|
static bool first = true;
|
|
if (first) {
|
|
#ifdef WITH_OPENSSL
|
|
OpenSSL::registerCiphers();
|
|
#endif
|
|
#ifdef WITH_COMMON_CRYPTO
|
|
CommonCrypto::registerCiphers();
|
|
#endif
|
|
NullCiphers::registerCiphers();
|
|
first = false;
|
|
}
|
|
return registry;
|
|
}
|
|
|
|
BlockCipher::BlockCipher() {}
|
|
|
|
BlockCipher::~BlockCipher() {}
|
|
|
|
} // namespace encfs
|