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.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/crypto.h') 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 */ -- cgit v1.2.3