diff options
author | Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> | 2023-09-13 20:32:54 +0200 |
---|---|---|
committer | Neil Horman <nhorman@openssl.org> | 2024-07-22 06:55:35 -0400 |
commit | 962431d58bdf7fcdb3db11f17cea878b83292243 (patch) | |
tree | 1e52d31bf7605b773c7882fa25a82ab8f4a4d3ff /crypto/sha | |
parent | 1cf2f8231ea8c3c1dd73a6f5bdf1404ecd503c4d (diff) |
that open brace { should be on the previous line
Found by running the checkpatch.pl Linux script to enforce coding style.
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: David von Oheimb <david.von.oheimb@siemens.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22097)
Diffstat (limited to 'crypto/sha')
-rw-r--r-- | crypto/sha/sha256.c | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/crypto/sha/sha256.c b/crypto/sha/sha256.c index 6ef218e86e..f11ab0675b 100644 --- a/crypto/sha/sha256.c +++ b/crypto/sha/sha256.c @@ -88,27 +88,31 @@ int SHA224_Final(unsigned char *md, SHA256_CTX *c) #define HASH_MAKE_STRING(c,s) do { \ unsigned long ll; \ unsigned int nn; \ - switch ((c)->md_len) \ - { case SHA256_192_DIGEST_LENGTH: \ - for (nn=0;nn<SHA256_192_DIGEST_LENGTH/4;nn++) \ - { ll=(c)->h[nn]; (void)HOST_l2c(ll,(s)); } \ + switch ((c)->md_len) { \ + case SHA256_192_DIGEST_LENGTH: \ + for (nn=0;nn<SHA256_192_DIGEST_LENGTH/4;nn++) { \ + ll=(c)->h[nn]; (void)HOST_l2c(ll,(s)); \ + } \ break; \ case SHA224_DIGEST_LENGTH: \ - for (nn=0;nn<SHA224_DIGEST_LENGTH/4;nn++) \ - { ll=(c)->h[nn]; (void)HOST_l2c(ll,(s)); } \ + for (nn=0;nn<SHA224_DIGEST_LENGTH/4;nn++) { \ + ll=(c)->h[nn]; (void)HOST_l2c(ll,(s)); \ + } \ break; \ case SHA256_DIGEST_LENGTH: \ - for (nn=0;nn<SHA256_DIGEST_LENGTH/4;nn++) \ - { ll=(c)->h[nn]; (void)HOST_l2c(ll,(s)); } \ + for (nn=0;nn<SHA256_DIGEST_LENGTH/4;nn++) { \ + ll=(c)->h[nn]; (void)HOST_l2c(ll,(s)); \ + } \ break; \ default: \ if ((c)->md_len > SHA256_DIGEST_LENGTH) \ return 0; \ - for (nn=0;nn<(c)->md_len/4;nn++) \ - { ll=(c)->h[nn]; (void)HOST_l2c(ll,(s)); } \ + for (nn=0;nn<(c)->md_len/4;nn++) { \ + ll=(c)->h[nn]; (void)HOST_l2c(ll,(s)); \ + } \ break; \ } \ - } while (0) + } while (0) #define HASH_UPDATE SHA256_Update #define HASH_TRANSFORM SHA256_Transform |