diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-11-02 04:32:18 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-11-02 04:32:18 +0100 |
commit | 20ee3b5a4f110f53a73746e18fc0eb0cbbb7845c (patch) | |
tree | bbf62cb65ba716e7cefcfc41904bb3460c3ddb58 /src/crypto.h | |
parent | de66ca829d22f939900635968d1b3fd7a7d598da (diff) | |
download | fastd-20ee3b5a4f110f53a73746e18fc0eb0cbbb7845c.tar fastd-20ee3b5a4f110f53a73746e18fc0eb0cbbb7845c.zip |
Implement the first step towards a more flexible way to support crypto methods
Diffstat (limited to 'src/crypto.h')
-rw-r--r-- | src/crypto.h | 21 |
1 files changed, 0 insertions, 21 deletions
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 <stdint.h> - - -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 { |