From 20ee3b5a4f110f53a73746e18fc0eb0cbbb7845c Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sat, 2 Nov 2013 04:32:18 +0100 Subject: Implement the first step towards a more flexible way to support crypto methods --- src/crypto.h | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'src/crypto.h') diff --git a/src/crypto.h b/src/crypto.h index 7894f85..b954651 100644 --- a/src/crypto.h +++ b/src/crypto.h @@ -29,27 +29,6 @@ #include "types.h" -#include - - -typedef union fastd_block128 { - uint8_t b[16]; - uint64_t qw[2]; -} __attribute__((aligned(16))) fastd_block128_t; - - -#ifdef USE_CRYPTO_AES128CTR -struct fastd_crypto_aes128ctr { - const char *name; - - fastd_crypto_aes128ctr_context_t* (*init)(fastd_context_t *ctx); - fastd_crypto_aes128ctr_state_t* (*set_key)(fastd_context_t *ctx, const fastd_crypto_aes128ctr_context_t *cctx, const fastd_block128_t *key); - bool (*crypt)(fastd_context_t *ctx, const fastd_crypto_aes128ctr_state_t *cstate, fastd_block128_t *out, const fastd_block128_t *in, size_t len, const fastd_block128_t *iv); - - void (*free_state)(fastd_context_t *ctx, fastd_crypto_aes128ctr_state_t *cstate); - void (*free)(fastd_context_t *ctx, fastd_crypto_aes128ctr_context_t *cctx); -}; -#endif #ifdef USE_CRYPTO_GHASH struct fastd_crypto_ghash { -- cgit v1.2.3