diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2015-03-12 08:11:42 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2015-03-13 08:32:28 +0100 |
commit | e693622467bf16f39afd792ee1e78ea9e2fed26f (patch) | |
tree | 7005e2dff155473fb47e5be50de248c23f3deefc /crypto/sha4.c | |
parent | ac2407db7a25ba81852919c34de56db792e77fca (diff) | |
download | barebox-e693622467bf16f39afd792ee1e78ea9e2fed26f.tar.gz barebox-e693622467bf16f39afd792ee1e78ea9e2fed26f.tar.xz |
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 <s.hauer@pengutronix.de>
Diffstat (limited to 'crypto/sha4.c')
-rw-r--r-- | crypto/sha4.c | 8 |
1 files changed, 4 insertions, 4 deletions
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; |