From e693622467bf16f39afd792ee1e78ea9e2fed26f Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Thu, 12 Mar 2015 08:11:42 +0100 Subject: crypto: digest: Fix coding style When declaring pointer data or a function that returns a pointer type, the preferred use of '*' is adjacent to the data name or function name and not adjacent to the type name. Fix the remaining occurences in crypto/ Signed-off-by: Sascha Hauer --- crypto/sha4.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'crypto/sha4.c') diff --git a/crypto/sha4.c b/crypto/sha4.c index 8a56081c33..1c768e720e 100644 --- a/crypto/sha4.c +++ b/crypto/sha4.c @@ -97,7 +97,7 @@ static const uint64_t K[80] = { /* * SHA-512 context setup */ -static void sha4_starts(sha4_context * ctx, int is384) +static void sha4_starts(sha4_context *ctx, int is384) { ctx->total[0] = 0; ctx->total[1] = 0; @@ -127,7 +127,7 @@ static void sha4_starts(sha4_context * ctx, int is384) ctx->is384 = is384; } -static void sha4_process(sha4_context * ctx, unsigned char data[128]) +static void sha4_process(sha4_context *ctx, unsigned char data[128]) { int i; uint64_t temp1, temp2, W[80]; @@ -202,7 +202,7 @@ static void sha4_process(sha4_context * ctx, unsigned char data[128]) /* * SHA-512 process buffer */ -static void sha4_update(sha4_context * ctx, unsigned char *input, int ilen) +static void sha4_update(sha4_context *ctx, unsigned char *input, int ilen) { int fill; uint64_t left; @@ -250,7 +250,7 @@ static const unsigned char sha4_padding[128] = { /* * SHA-512 final digest */ -static void sha4_finish(sha4_context * ctx, unsigned char output[64]) +static void sha4_finish(sha4_context *ctx, unsigned char output[64]) { int last, padn; uint64_t high, low; -- cgit v1.2.3