- added compution of all needed keys and also creation of needed
[strongswan.git] / Source / charon / transforms / crypters / crypter.c
index 8a9f590..1a0f859 100644 (file)
@@ -45,3 +45,20 @@ mapping_t encryption_algorithm_m[] = {
 {ENCR_AES_CTR, "ENCR_AES_CTR"},
 {MAPPING_END, NULL}
 };
+
+/* 
+ * Described in header.
+ */
+crypter_t *crypter_create(encryption_algorithm_t encryption_algorithm,size_t blocksize)
+{
+       switch (encryption_algorithm)
+       {
+               case ENCR_AES_CBC:
+               {
+                       return (crypter_t*)aes_cbc_crypter_create(blocksize);
+                       
+               }
+               default:
+                       return NULL;
+       }
+}