summaryrefslogtreecommitdiffstats
path: root/crypto/sha2.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2015-03-12 08:11:42 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2015-03-13 08:32:28 +0100
commite693622467bf16f39afd792ee1e78ea9e2fed26f (patch)
tree7005e2dff155473fb47e5be50de248c23f3deefc /crypto/sha2.c
parentac2407db7a25ba81852919c34de56db792e77fca (diff)
downloadbarebox-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/sha2.c')
-rw-r--r--crypto/sha2.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/crypto/sha2.c b/crypto/sha2.c
index 8558030547..cb89c82312 100644
--- a/crypto/sha2.c
+++ b/crypto/sha2.c
@@ -39,7 +39,7 @@ typedef struct {
#define GET_UINT32_BE(n,b,i) (n) = be32_to_cpu(((uint32_t*)(b))[i / 4])
#define PUT_UINT32_BE(n,b,i) ((uint32_t*)(b))[i / 4] = cpu_to_be32(n)
-static void sha2_starts(sha2_context * ctx, int is224)
+static void sha2_starts(sha2_context *ctx, int is224)
{
ctx->total[0] = 0;
ctx->total[1] = 0;
@@ -74,7 +74,7 @@ static void sha2_starts(sha2_context * ctx, int is224)
ctx->is224 = is224;
}
-static void sha2_process(sha2_context * ctx, const uint8_t data[64])
+static void sha2_process(sha2_context *ctx, const uint8_t data[64])
{
uint32_t temp1, temp2;
uint32_t W[64];
@@ -205,7 +205,7 @@ static void sha2_process(sha2_context * ctx, const uint8_t data[64])
ctx->state[7] += H;
}
-static void sha2_update(sha2_context * ctx, const uint8_t * input, size_t length)
+static void sha2_update(sha2_context *ctx, const uint8_t *input, size_t length)
{
size_t fill;
uint32_t left;
@@ -247,7 +247,7 @@ static const uint8_t sha2_padding[64] = {
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
};
-static void sha2_finish(sha2_context * ctx, uint8_t digest[32])
+static void sha2_finish(sha2_context *ctx, uint8_t digest[32])
{
uint32_t last, padn;
uint32_t high, low;