added support for 3DES encryption algorithm in IKE
[strongswan.git] / src / libstrongswan / crypto / crypters / crypter.c
index 92f50e5..145138d 100644 (file)
@@ -25,6 +25,7 @@
 #include "crypter.h"
 
 #include <crypto/crypters/aes_cbc_crypter.h>
+#include <crypto/crypters/des_crypter.h>
 
 
 /** 
@@ -58,6 +59,11 @@ crypter_t *crypter_create(encryption_algorithm_t encryption_algorithm, size_t ke
                {
                        return (crypter_t*)aes_cbc_crypter_create(key_size);
                }
+               case ENCR_DES:
+               case ENCR_3DES:
+               {
+                       return (crypter_t*)des_crypter_create(encryption_algorithm);
+               }
                default:
                        return NULL;
        }