From aa1d894e102e23d162b8e2bccd4b3bf1700de2f2 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sat, 30 Nov 2013 05:34:49 +0100 Subject: Make the crypto implementations independent of fastd.h (and fix more minor bugs) --- src/crypto/mac/ghash/pclmulqdq/ghash_pclmulqdq.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src/crypto/mac/ghash/pclmulqdq/ghash_pclmulqdq.c') diff --git a/src/crypto/mac/ghash/pclmulqdq/ghash_pclmulqdq.c b/src/crypto/mac/ghash/pclmulqdq/ghash_pclmulqdq.c index 8f1edb0..419d406 100644 --- a/src/crypto/mac/ghash/pclmulqdq/ghash_pclmulqdq.c +++ b/src/crypto/mac/ghash/pclmulqdq/ghash_pclmulqdq.c @@ -34,17 +34,10 @@ static bool ghash_available(void) { return ((fastd_cpuid()&REQ) == REQ); } -static void ghash_free(fastd_context_t *ctx UNUSED, fastd_mac_state_t *state) { - if (state) { - secure_memzero(state, sizeof(*state)); - free(state); - } -} - const fastd_mac_t fastd_mac_ghash_pclmulqdq = { .available = ghash_available, .init = fastd_ghash_pclmulqdq_init, .hash = fastd_ghash_pclmulqdq_hash, - .free = ghash_free, + .free = fastd_ghash_pclmulqdq_free, }; -- cgit v1.2.3