summaryrefslogtreecommitdiff
path: root/src/keyDerivationFactory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/keyDerivationFactory.cpp')
-rw-r--r--src/keyDerivationFactory.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/keyDerivationFactory.cpp b/src/keyDerivationFactory.cpp
index 56a750a..58518b8 100644
--- a/src/keyDerivationFactory.cpp
+++ b/src/keyDerivationFactory.cpp
@@ -40,8 +40,10 @@ KeyDerivation* KeyDerivationFactory::create(std::string const& type)
{
if( type == "null" )
return new NullKeyDerivation();
+#ifndef NOCRYPT
else if( type == "aes-ctr" )
return new AesIcmKeyDerivation();
+#endif
else
throw std::invalid_argument("key derivation prf not available");
}