diff options
Diffstat (limited to 'src/cipherFactory.cpp')
-rw-r--r-- | src/cipherFactory.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cipherFactory.cpp b/src/cipherFactory.cpp index bab0d5a..02fff5d 100644 --- a/src/cipherFactory.cpp +++ b/src/cipherFactory.cpp @@ -43,6 +43,12 @@ Cipher* CipherFactory::create(std::string const& type, kd_dir_t dir) #ifndef NOCRYPT else if( type == "aes-ctr" ) return new AesIcmCipher(dir); + else if( type == "aes-ctr-128" ) + return new AesIcmCipher(dir, 128); + else if( type == "aes-ctr-192" ) + return new AesIcmCipher(dir, 192); + else if( type == "aes-ctr-256" ) + return new AesIcmCipher(dir, 256); #endif else throw std::invalid_argument("cipher not available"); |