diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-05-28 05:53:26 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-05-29 01:30:07 +0200 |
commit | efcafca969d2e789cdf106609b04a86ef9b53a3d (patch) | |
tree | 001ca30403dea064b4d30bb521d8eb8de91f10a3 /src/crypto.h | |
parent | d5da100c55d80391d2e941a41c0e0dccf2a6e33e (diff) | |
download | fastd-efcafca969d2e789cdf106609b04a86ef9b53a3d.tar fastd-efcafca969d2e789cdf106609b04a86ef9b53a3d.zip |
Simplify configuration of cipher and MAC implementations
Let the cipher and MAC handlers just store the chosen implementations themselves
instead of relying on the global configuration.
Diffstat (limited to 'src/crypto.h')
-rw-r--r-- | src/crypto.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/crypto.h b/src/crypto.h index 8f94fae..861db5f 100644 --- a/src/crypto.h +++ b/src/crypto.h @@ -77,16 +77,14 @@ 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); +void fastd_cipher_init(void); +bool fastd_cipher_config(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(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); +void fastd_mac_init(void); +bool fastd_mac_config(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(const fastd_mac_info_t *info); |