Skip to content

Commit c93c7dc

Browse files
liyang-shiberrange
authored andcommitted
crypto: Add spaces around operator
I am reading crypto related code, find some code style problems while using checkpatch.pl to check crypto folder. Fix the error style problems. Signed-off-by: Liyang Shi <[email protected]> Signed-off-by: Daniel P. Berrangé <[email protected]>
1 parent 7d7dbf9 commit c93c7dc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

crypto/aes.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1080,9 +1080,9 @@ int AES_set_encrypt_key(const unsigned char *userKey, const int bits,
10801080

10811081
rk = key->rd_key;
10821082

1083-
if (bits==128)
1083+
if (bits == 128)
10841084
key->rounds = 10;
1085-
else if (bits==192)
1085+
else if (bits == 192)
10861086
key->rounds = 12;
10871087
else
10881088
key->rounds = 14;

crypto/desrfb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ void deskey(unsigned char *key, int edf)
9393
}
9494
for( j = 0; j < 24; j++ ) {
9595
if( pcr[pc2[j]] ) kn[m] |= bigbyte[j];
96-
if( pcr[pc2[j+24]] ) kn[n] |= bigbyte[j];
96+
if( pcr[pc2[j + 24]] ) kn[n] |= bigbyte[j];
9797
}
9898
}
9999
cookey(kn);

0 commit comments

Comments
 (0)