gcrypt actually does not implement IDEA
authorMartin Willi <martin@strongswan.org>
Mon, 15 Jun 2009 16:18:04 +0000 (18:18 +0200)
committerMartin Willi <martin@strongswan.org>
Mon, 15 Jun 2009 16:18:04 +0000 (18:18 +0200)
src/libstrongswan/plugins/gcrypt/gcrypt_crypter.c
src/libstrongswan/plugins/gcrypt/gcrypt_plugin.c

index 3bf513f..17e6ef2 100644 (file)
@@ -143,8 +143,8 @@ gcrypt_crypter_t *gcrypt_crypter_create(encryption_algorithm_t algo,
                        gcrypt_alg = GCRY_CIPHER_3DES;
                        break;
                case ENCR_IDEA:
-                       gcrypt_alg = GCRY_CIPHER_IDEA;
-                       break;
+                       /* currently not implemented in gcrypt */
+                       return NULL;
                case ENCR_CAST:
                        gcrypt_alg = GCRY_CIPHER_CAST5;
                        break;
index 1d6d74a..23a8df8 100644 (file)
@@ -160,8 +160,6 @@ plugin_t *plugin_create()
        /* crypters */
        lib->crypto->add_crypter(lib->crypto, ENCR_3DES,
                                        (crypter_constructor_t)gcrypt_crypter_create);
-       lib->crypto->add_crypter(lib->crypto, ENCR_IDEA,
-                                       (crypter_constructor_t)gcrypt_crypter_create);
        lib->crypto->add_crypter(lib->crypto, ENCR_CAST,
                                        (crypter_constructor_t)gcrypt_crypter_create);
        lib->crypto->add_crypter(lib->crypto, ENCR_BLOWFISH,