aesni: Implement a AES-NI based CTR crypter using the key schedule
[strongswan.git] / src / libstrongswan / plugins / aesni / aesni_plugin.c
index 7464598..697392d 100644 (file)
@@ -15,6 +15,7 @@
 
 #include "aesni_plugin.h"
 #include "aesni_cbc.h"
+#include "aesni_ctr.h"
 
 #include <stdio.h>
 
@@ -50,6 +51,10 @@ METHOD(plugin_t, get_features, int,
                        PLUGIN_PROVIDE(CRYPTER, ENCR_AES_CBC, 16),
                        PLUGIN_PROVIDE(CRYPTER, ENCR_AES_CBC, 24),
                        PLUGIN_PROVIDE(CRYPTER, ENCR_AES_CBC, 32),
+               PLUGIN_REGISTER(CRYPTER, aesni_ctr_create),
+                       PLUGIN_PROVIDE(CRYPTER, ENCR_AES_CTR, 16),
+                       PLUGIN_PROVIDE(CRYPTER, ENCR_AES_CTR, 24),
+                       PLUGIN_PROVIDE(CRYPTER, ENCR_AES_CTR, 32),
        };
 
        *features = f;