summaryrefslogtreecommitdiffstats
path: root/src/crypto.h
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.h
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.h')
-rw-r--r--src/crypto.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/crypto.h b/src/crypto.h
index 861db5f..f522c21 100644
--- a/src/crypto.h
+++ b/src/crypto.h
@@ -50,7 +50,7 @@ struct fastd_cipher {
bool (*available)(void);
/** Initializes a cipher context with the given key */
- fastd_cipher_state_t* (*init)(const uint8_t *key);
+ fastd_cipher_state_t * (*init)(const uint8_t *key);
/** Encrypts or decrypts data */
bool (*crypt)(const fastd_cipher_state_t *state, fastd_block128_t *out, const fastd_block128_t *in, size_t len, const uint8_t *iv);
/** Frees a cipher context */
@@ -69,7 +69,7 @@ struct fastd_mac {
bool (*available)(void);
/** Initializes a MAC context with the given key */
- fastd_mac_state_t* (*init)(const uint8_t *key);
+ fastd_mac_state_t * (*init)(const uint8_t *key);
/** Computes the MAC of data blocks */
bool (*hash)(const fastd_mac_state_t *state, fastd_block128_t *out, const fastd_block128_t *in, size_t n_blocks);
/** Frees a MAC context */
@@ -80,14 +80,14 @@ struct fastd_mac {
void fastd_cipher_init(void);
bool fastd_cipher_config(const char *name, const char *impl);
-const fastd_cipher_info_t* fastd_cipher_info_get_by_name(const char *name);
-const fastd_cipher_t* fastd_cipher_get(const fastd_cipher_info_t *info);
+const fastd_cipher_info_t * fastd_cipher_info_get_by_name(const char *name);
+const fastd_cipher_t * fastd_cipher_get(const fastd_cipher_info_t *info);
void fastd_mac_init(void);
bool fastd_mac_config(const char *name, const char *impl);
-const fastd_mac_info_t* fastd_mac_info_get_by_name(const char *name);
-const fastd_mac_t* fastd_mac_get(const fastd_mac_info_t *info);
+const fastd_mac_info_t * fastd_mac_info_get_by_name(const char *name);
+const fastd_mac_t * fastd_mac_get(const fastd_mac_info_t *info);
/** Sets a range of memory to zero, ensuring the operation can't be optimized out by the compiler */