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/types.h | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'src/types.h') diff --git a/src/types.h b/src/types.h index 894b2af..352bf7c 100644 --- a/src/types.h +++ b/src/types.h @@ -115,6 +115,7 @@ typedef struct fastd_context fastd_context_t; typedef struct fastd_protocol fastd_protocol_t; typedef struct fastd_method fastd_method_t; typedef struct fastd_cipher fastd_cipher_t; +typedef struct fastd_mac fastd_mac_t; typedef struct fastd_handshake fastd_handshake_t; @@ -123,10 +124,6 @@ typedef struct fastd_string_stack fastd_string_stack_t; typedef struct fastd_resolve_return fastd_resolve_return_t; -#ifdef USE_CRYPTO_GHASH -typedef struct fastd_crypto_ghash fastd_crypto_ghash_t; -#endif - typedef union fastd_block128 { uint8_t b[16]; @@ -145,9 +142,7 @@ typedef struct fastd_method_session_state fastd_method_session_state_t; typedef struct fastd_cipher_context fastd_cipher_context_t; typedef struct fastd_cipher_state fastd_cipher_state_t; -#ifdef USE_CRYPTO_GHASH -typedef struct fastd_crypto_ghash_context fastd_crypto_ghash_context_t; -typedef struct fastd_crypto_ghash_state fastd_crypto_ghash_state_t; -#endif +typedef struct fastd_mac_context fastd_mac_context_t; +typedef struct fastd_mac_state fastd_mac_state_t; #endif /* _FASTD_TYPES_H_ */ -- cgit v1.2.3