summaryrefslogtreecommitdiffstats
path: root/src/config.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2012-06-27 02:28:49 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2012-06-27 02:28:49 +0200
commit5e451533dd5d1198f55561529ba5924e5f951123 (patch)
tree9eacc19aadb5d1a5ef52417d68cc5d0943cd1830 /src/config.c
parent0ec1eb3d4c4823389659a4284b1f4ddeecf047e8 (diff)
downloadfastd-5e451533dd5d1198f55561529ba5924e5f951123.tar
fastd-5e451533dd5d1198f55561529ba5924e5f951123.zip
Primitive aes128-gcm implementation
Diffstat (limited to 'src/config.c')
-rw-r--r--src/config.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/config.c b/src/config.c
index 92c7a45..e69abcc 100644
--- a/src/config.c
+++ b/src/config.c
@@ -48,6 +48,9 @@ extern const fastd_method fastd_method_null;
#ifdef WITH_METHOD_XSALSA20_POLY1305
extern const fastd_method fastd_method_xsalsa20_poly1305;
#endif
+#ifdef WITH_METHOD_AES128_GCM
+extern const fastd_method fastd_method_aes128_gcm;
+#endif
static void default_config(fastd_config *conf) {
@@ -140,6 +143,10 @@ bool fastd_config_method(fastd_context *ctx, fastd_config *conf, const char *nam
else if (!strcmp(name, "xsalsa20-poly1305"))
conf->method = &fastd_method_xsalsa20_poly1305;
#endif
+#ifdef WITH_METHOD_AES128_GCM
+ else if (!strcmp(name, "aes128-gcm"))
+ conf->method = &fastd_method_aes128_gcm;
+#endif
else
return false;