From 4496be6e29732189769b78f63e491dacb23c961b Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sat, 2 Nov 2013 16:01:16 +0100 Subject: Convert ghash to the new crypto algorithm scheme --- src/fastd.c | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'src/fastd.c') 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 @@ -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); } -- cgit v1.2.3