From 5b27fb12f0dc01a4a282aa62028592795890a200 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Thu, 15 Jan 2009 13:37:22 +0000 Subject: cipher now stores kd direction --- src/cipherFactory.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/cipherFactory.cpp') 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"); -- cgit v1.2.3