summaryrefslogtreecommitdiff
path: root/src/keyDerivationFactory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/keyDerivationFactory.cpp')
-rw-r--r--src/keyDerivationFactory.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/keyDerivationFactory.cpp b/src/keyDerivationFactory.cpp
index 2f91196..75df38a 100644
--- a/src/keyDerivationFactory.cpp
+++ b/src/keyDerivationFactory.cpp
@@ -36,19 +36,19 @@
#include "keyDerivation.h"
-KeyDerivation* KeyDerivationFactory::create(std::string const& type, bool anytun02_compat)
+KeyDerivation* KeyDerivationFactory::create(std::string const& type)
{
- if( type == "null" )
+ if(type == "null")
return new NullKeyDerivation();
#ifndef NO_CRYPT
- else if( type == "aes-ctr" )
- return new AesIcmKeyDerivation(anytun02_compat);
- else if( type == "aes-ctr-128" )
- return new AesIcmKeyDerivation(anytun02_compat, 128);
- else if( type == "aes-ctr-192" )
- return new AesIcmKeyDerivation(anytun02_compat, 192);
- else if( type == "aes-ctr-256" )
- return new AesIcmKeyDerivation(anytun02_compat, 256);
+ else if(type == "aes-ctr")
+ return new AesIcmKeyDerivation();
+ else if(type == "aes-ctr-128")
+ return new AesIcmKeyDerivation(128);
+ else if(type == "aes-ctr-192")
+ return new AesIcmKeyDerivation(192);
+ else if(type == "aes-ctr-256")
+ return new AesIcmKeyDerivation(256);
#endif
else
throw std::invalid_argument("key derivation prf not available");