diff options
author | Christian Pointner <equinox@anytun.org> | 2009-01-18 00:03:31 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2009-01-18 00:03:31 +0000 |
commit | 30b72e6d6ba344c4de828741d78dcf0018b724b1 (patch) | |
tree | ae3415160f118639c5dea29790a711790dd9819d /src/cipherFactory.cpp | |
parent | removed debug output (diff) |
enabled 128,192 and 256 bit keys for cipher and key derivation
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"); |