summaryrefslogtreecommitdiffstats
path: root/src/crypto.h
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-11-30 04:58:05 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-11-30 04:58:05 +0100
commit5f7258ade2dd8bad076d17d3a85fb04d9bf71bda (patch)
tree6dead8b1a3f5df9ae1a903d2deaedcb189f4d0d8 /src/crypto.h
parentf7e72b3584b54d43401fb02aa7ea677dc3bf0564 (diff)
downloadfastd-5f7258ade2dd8bad076d17d3a85fb04d9bf71bda.tar
fastd-5f7258ade2dd8bad076d17d3a85fb04d9bf71bda.zip
Make crypto implementation configurable (and update a few error messages)
Diffstat (limited to 'src/crypto.h')
-rw-r--r--src/crypto.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/crypto.h b/src/crypto.h
index 1f26058..c52fd42 100644
--- a/src/crypto.h
+++ b/src/crypto.h
@@ -57,9 +57,17 @@ struct fastd_mac {
};
+const fastd_cipher_t** fastd_cipher_config_alloc(void);
+void fastd_cipher_config_free(const fastd_cipher_t **cipher_conf);
+bool fastd_cipher_config(const fastd_cipher_t **cipher_conf, const char *name, const char *impl);
+
const fastd_cipher_info_t* fastd_cipher_info_get_by_name(const char *name);
const fastd_cipher_t* fastd_cipher_get(fastd_context_t *ctx, const fastd_cipher_info_t *info);
+const fastd_mac_t** fastd_mac_config_alloc(void);
+void fastd_mac_config_free(const fastd_mac_t **mac_conf);
+bool fastd_mac_config(const fastd_mac_t **mac_conf, const char *name, const char *impl);
+
const fastd_mac_info_t* fastd_mac_info_get_by_name(const char *name);
const fastd_mac_t* fastd_mac_get(fastd_context_t *ctx, const fastd_mac_info_t *info);