summaryrefslogtreecommitdiffstats
path: root/src/crypto/mac/ghash
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-08-24 21:06:09 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-08-24 21:06:09 +0200
commit9855a34f48acf6ae3aaeba9ec37756da41507e64 (patch)
treea02c2a507b3d536182d81e78b878b6b29c617cb9 /src/crypto/mac/ghash
parent1ae3aae35193dce25e5534b12a46011ec7912bb4 (diff)
downloadfastd-9855a34f48acf6ae3aaeba9ec37756da41507e64.tar
fastd-9855a34f48acf6ae3aaeba9ec37756da41507e64.zip
Coding style: always add a space between a pointer's type and the *
Diffstat (limited to 'src/crypto/mac/ghash')
-rw-r--r--src/crypto/mac/ghash/builtin/ghash_builtin.c4
-rw-r--r--src/crypto/mac/ghash/pclmulqdq/ghash_pclmulqdq.h2
-rw-r--r--src/crypto/mac/ghash/pclmulqdq/ghash_pclmulqdq_impl.c4
3 files changed, 5 insertions, 5 deletions
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));