Skip to content

Commit

Permalink
sha256: minor undef cleanup
Browse files Browse the repository at this point in the history
RND is #defined in both the #if and #else case, so move the #undef after
the #endif.
  • Loading branch information
pattop committed Aug 16, 2020
1 parent 40b9560 commit d63d6fa
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/hashes/sha2/sha256.c
Expand Up @@ -168,10 +168,8 @@ static int s_sha256_compress(hash_state * md, const unsigned char *buf)
RND(S[3],S[4],S[5],S[6],S[7],S[0],S[1],S[2],61,0xa4506ceb);
RND(S[2],S[3],S[4],S[5],S[6],S[7],S[0],S[1],62,0xbef9a3f7);
RND(S[1],S[2],S[3],S[4],S[5],S[6],S[7],S[0],63,0xc67178f2);

#undef RND

#endif
#undef RND

/* feedback */
for (i = 0; i < 8; i++) {
Expand Down

0 comments on commit d63d6fa

Please sign in to comment.