Fixed AES key length in openssl plugin
authorMartin Willi <martin@revosec.ch>
Fri, 23 Sep 2011 10:11:07 +0000 (12:11 +0200)
committerMartin Willi <martin@revosec.ch>
Fri, 14 Oct 2011 08:05:47 +0000 (10:05 +0200)
src/libstrongswan/plugins/openssl/openssl_plugin.c

index 73c0c3b..c93ceac 100644 (file)
@@ -206,12 +206,12 @@ METHOD(plugin_t, get_features, int,
                /* crypters */
                PLUGIN_REGISTER(CRYPTER, openssl_crypter_create),
 #ifndef OPENSSL_NO_AES
-                       PLUGIN_PROVIDE(CRYPTER, ENCR_AES_CBC, 12),
+                       PLUGIN_PROVIDE(CRYPTER, ENCR_AES_CBC, 16),
                        PLUGIN_PROVIDE(CRYPTER, ENCR_AES_CBC, 24),
                        PLUGIN_PROVIDE(CRYPTER, ENCR_AES_CBC, 32),
 #endif
 #ifndef OPENSSL_NO_CAMELLIA
-                       PLUGIN_PROVIDE(CRYPTER, ENCR_CAMELLIA_CBC, 12),
+                       PLUGIN_PROVIDE(CRYPTER, ENCR_CAMELLIA_CBC, 16),
                        PLUGIN_PROVIDE(CRYPTER, ENCR_CAMELLIA_CBC, 24),
                        PLUGIN_PROVIDE(CRYPTER, ENCR_CAMELLIA_CBC, 32),
 #endif