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/sha1.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/sha1.c')
-rw-r--r-- | crypto/sha1.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crypto/sha1.c b/crypto/sha1.c index 766e4eace2..a244b5d627 100644 --- a/crypto/sha1.c +++ b/crypto/sha1.c @@ -48,7 +48,7 @@ sha1_context; /* * SHA-1 context setup */ -static void sha1_starts (sha1_context * ctx) +static void sha1_starts (sha1_context *ctx) { ctx->total[0] = 0; ctx->total[1] = 0; @@ -60,7 +60,7 @@ static void sha1_starts (sha1_context * ctx) ctx->state[4] = 0xC3D2E1F0; } -static void sha1_process (sha1_context * ctx, uint8_t data[64]) +static void sha1_process (sha1_context *ctx, uint8_t data[64]) { uint32_t temp, W[16], A, B, C, D, E; @@ -217,7 +217,7 @@ static void sha1_process (sha1_context * ctx, uint8_t data[64]) /* * SHA-1 process buffer */ -static void sha1_update (sha1_context * ctx, uint8_t *input, uint32_t ilen) +static void sha1_update (sha1_context *ctx, uint8_t *input, uint32_t ilen) { uint32_t fill, left; @@ -262,7 +262,7 @@ static uint8_t sha1_padding[64] = { /* * SHA-1 final digest */ -static void sha1_finish (sha1_context * ctx, uint8_t output[20]) +static void sha1_finish (sha1_context *ctx, uint8_t output[20]) { uint32_t last, padn; uint32_t high, low; |