diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-11-02 16:01:16 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-11-02 16:01:16 +0100 |
commit | 4496be6e29732189769b78f63e491dacb23c961b (patch) | |
tree | 5882550f4cf9b516fdd613bbaf4535a7f59d981a /src/fastd.c | |
parent | 20a95ef2731ce21acfe5c1ba97b40001217b0216 (diff) | |
download | fastd-4496be6e29732189769b78f63e491dacb23c961b.tar fastd-4496be6e29732189769b78f63e491dacb23c961b.zip |
Convert ghash to the new crypto algorithm scheme
Diffstat (limited to 'src/fastd.c')
-rw-r--r-- | src/fastd.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/fastd.c b/src/fastd.c index 534a30e..175dc00 100644 --- a/src/fastd.c +++ b/src/fastd.c @@ -25,7 +25,6 @@ #include "fastd.h" -#include "crypto.h" #include "handshake.h" #include "peer.h" #include <fastd_version.h> @@ -147,20 +146,11 @@ static void close_log(fastd_context_t *ctx) { static void crypto_init(fastd_context_t *ctx) { fastd_cipher_init(ctx); - -#ifdef USE_CRYPTO_GHASH - ctx->crypto_ghash = ctx->conf->crypto_ghash->init(ctx); - if (!ctx->crypto_ghash) - exit_error(ctx, "Unable to initialize GHASH implementation"); -#endif + fastd_mac_init(ctx); } static void crypto_free(fastd_context_t *ctx UNUSED) { -#ifdef USE_CRYPTO_GHASH - ctx->conf->crypto_ghash->free(ctx, ctx->crypto_ghash); - ctx->crypto_ghash = NULL; -#endif - + fastd_mac_free(ctx); fastd_cipher_free(ctx); } |