From 9855a34f48acf6ae3aaeba9ec37756da41507e64 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sun, 24 Aug 2014 21:06:09 +0200 Subject: Coding style: always add a space between a pointer's type and the * --- src/crypto/mac/ghash/builtin/ghash_builtin.c | 4 ++-- src/crypto/mac/ghash/pclmulqdq/ghash_pclmulqdq.h | 2 +- src/crypto/mac/ghash/pclmulqdq/ghash_pclmulqdq_impl.c | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/crypto/mac/ghash') diff --git a/src/crypto/mac/ghash/builtin/ghash_builtin.c b/src/crypto/mac/ghash/builtin/ghash_builtin.c index 0b957a4..981b588 100644 --- a/src/crypto/mac/ghash/builtin/ghash_builtin.c +++ b/src/crypto/mac/ghash/builtin/ghash_builtin.c @@ -72,9 +72,9 @@ static inline void mulH_a(fastd_block128_t *x, const fastd_mac_state_t *cstate) /** Initializes the MAC state with the unpacked key data */ -static fastd_mac_state_t* ghash_init(const uint8_t *key) { +static fastd_mac_state_t * ghash_init(const uint8_t *key) { fastd_mac_state_t *state; - if (posix_memalign((void**)&state, 16, sizeof(fastd_mac_state_t))) + if (posix_memalign((void **)&state, 16, sizeof(fastd_mac_state_t))) abort(); fastd_block128_t Hbase[4]; diff --git a/src/crypto/mac/ghash/pclmulqdq/ghash_pclmulqdq.h b/src/crypto/mac/ghash/pclmulqdq/ghash_pclmulqdq.h index 51ef5da..bd10de4 100644 --- a/src/crypto/mac/ghash/pclmulqdq/ghash_pclmulqdq.h +++ b/src/crypto/mac/ghash/pclmulqdq/ghash_pclmulqdq.h @@ -35,6 +35,6 @@ #include "../../../../crypto.h" -fastd_mac_state_t* fastd_ghash_pclmulqdq_init(const uint8_t *key); +fastd_mac_state_t * fastd_ghash_pclmulqdq_init(const uint8_t *key); bool fastd_ghash_pclmulqdq_hash(const fastd_mac_state_t *state, fastd_block128_t *out, const fastd_block128_t *in, size_t n_blocks); void fastd_ghash_pclmulqdq_free(fastd_mac_state_t *state); diff --git a/src/crypto/mac/ghash/pclmulqdq/ghash_pclmulqdq_impl.c b/src/crypto/mac/ghash/pclmulqdq/ghash_pclmulqdq_impl.c index 49c036a..17e7aa2 100644 --- a/src/crypto/mac/ghash/pclmulqdq/ghash_pclmulqdq_impl.c +++ b/src/crypto/mac/ghash/pclmulqdq/ghash_pclmulqdq_impl.c @@ -76,9 +76,9 @@ static inline __m128i byteswap(__m128i v) { /** Initializes the state used by this GHASH implementation */ -fastd_mac_state_t* fastd_ghash_pclmulqdq_init(const uint8_t *key) { +fastd_mac_state_t * fastd_ghash_pclmulqdq_init(const uint8_t *key) { fastd_mac_state_t *state; - if (posix_memalign((void**)&state, 16, sizeof(fastd_mac_state_t))) + if (posix_memalign((void **)&state, 16, sizeof(fastd_mac_state_t))) abort(); memcpy(&state->H, key, sizeof(__m128i)); -- cgit v1.2.3