summaryrefslogtreecommitdiff
path: root/src/cipherFactory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cipherFactory.cpp')
-rw-r--r--src/cipherFactory.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cipherFactory.cpp b/src/cipherFactory.cpp
index b02e5bc..bab0d5a 100644
--- a/src/cipherFactory.cpp
+++ b/src/cipherFactory.cpp
@@ -36,13 +36,13 @@
#include "cipher.h"
-Cipher* CipherFactory::create(std::string const& type)
+Cipher* CipherFactory::create(std::string const& type, kd_dir_t dir)
{
if( type == "null" )
return new NullCipher();
#ifndef NOCRYPT
else if( type == "aes-ctr" )
- return new AesIcmCipher();
+ return new AesIcmCipher(dir);
#endif
else
throw std::invalid_argument("cipher not available");