added support for 3DES encryption algorithm in IKE

This commit is contained in:
Martin Willi
2006-09-19 11:18:35 +00:00
parent b2ac140338
commit 462129d332
7 changed files with 1613 additions and 8 deletions
@@ -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;
}