summaryrefslogtreecommitdiffstats
path: root/src/crypto/mac
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
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')
-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
-rw-r--r--src/crypto/mac/macs.c.in4
4 files changed, 7 insertions, 7 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));
diff --git a/src/crypto/mac/macs.c.in b/src/crypto/mac/macs.c.in
index cf29e8d..c4cbecc 100644
--- a/src/crypto/mac/macs.c.in
+++ b/src/crypto/mac/macs.c.in
@@ -101,7 +101,7 @@ bool fastd_mac_config(const char *name, const char *impl) {
}
/** Returns information about the MAC with the specified name if there is an implementation available */
-const fastd_mac_info_t* fastd_mac_info_get_by_name(const char *name) {
+const fastd_mac_info_t * fastd_mac_info_get_by_name(const char *name) {
size_t i;
for (i = 0; i < array_size(macs); i++) {
if (strcmp(macs[i].name, name))
@@ -117,7 +117,7 @@ const fastd_mac_info_t* fastd_mac_info_get_by_name(const char *name) {
}
/** Returns the chosen MAC implementation for a given cipher */
-const fastd_mac_t* fastd_mac_get(const fastd_mac_info_t *info) {
+const fastd_mac_t * fastd_mac_get(const fastd_mac_info_t *info) {
size_t i;
for (i = 0; i < array_size(macs); i++) {
if (macs[i].info == info)