diff options
author | Björn Esser <besser82@fedoraproject.org> | 2017-10-23 10:36:38 +0200 |
---|---|---|
committer | Björn Esser <besser82@fedoraproject.org> | 2017-10-23 10:39:53 +0200 |
commit | 55216e31ab2e2355b87beea2cb9f0ed93cdc28cd (patch) | |
tree | 809ea769d7d57ad510f6dd3ba1dd662233d43843 /alg-sha256.c | |
parent | a0be271d98551c77a1465cfec088fe645ebecec9 (diff) | |
download | libxcrypt-55216e31ab2e2355b87beea2cb9f0ed93cdc28cd.tar.gz libxcrypt-55216e31ab2e2355b87beea2cb9f0ed93cdc28cd.tar.bz2 libxcrypt-55216e31ab2e2355b87beea2cb9f0ed93cdc28cd.zip |
Reformat all code files to match GNU style
Diffstat (limited to 'alg-sha256.c')
-rw-r--r-- | alg-sha256.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/alg-sha256.c b/alg-sha256.c index 79cf618..e97abaf 100644 --- a/alg-sha256.c +++ b/alg-sha256.c @@ -26,7 +26,8 @@ /* Constants for SHA256 from FIPS 180-2:4.2.2. */ -static const uint32_t K[64] = { +static const uint32_t K[64] = +{ 0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5, 0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5, 0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3, @@ -228,7 +229,7 @@ sha256_process_bytes (const void *buffer, size_t len, struct sha256_ctx *ctx) } /* Process available complete blocks. */ - if (len > 64) + if (len > 64) { sha256_process_block (buffer, len & ~63u, ctx); buffer = (const char *) buffer + (len & ~63u); |