Skip to content

Commit

Permalink
Fix checkstyle in sha2_generic.c
Browse files Browse the repository at this point in the history
- sha2_generic.c: 61: comma or semicolon followed by non-blank
- sha2_generic.c: 62: comma or semicolon followed by non-blank

Signed-off-by: Tino Reichardt <[email protected]>
  • Loading branch information
mcmilk committed Aug 24, 2022
1 parent 8c3ee61 commit 0021ef5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions module/icp/algs/sha2/sha2_generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ static const uint32_t SHA256_K[64] = {
0x90befffa, 0xa4506ceb, 0xbef9a3f7, 0xc67178f2
};

#define Ch(x,y,z) ((z) ^ ((x) & ((y) ^ (z))))
#define Maj(x,y,z) (((y) & (z)) | (((y) | (z)) & (x)))
#define Ch(x, y, z) ((z) ^ ((x) & ((y) ^ (z))))
#define Maj(x, y, z) (((y) & (z)) | (((y) | (z)) & (x)))

#define rotr32(x, n) (((x) >> n) | ((x) << (32 - n)))
#define sum0(x) (rotr32((x), 2) ^ rotr32((x), 13) ^ rotr32((x), 22))
Expand Down

0 comments on commit 0021ef5

Please sign in to comment.