Remove warnings

This commit is contained in:
Zhi Guan
2022-10-13 17:45:06 +08:00
parent 53cb1fbee0
commit 5e2381f122
19 changed files with 43 additions and 44 deletions

View File

@@ -175,7 +175,7 @@ void des_set_encrypt_key(DES_KEY *key, const unsigned char user_key[8])
K = GETU64(user_key);
K = permute(PC1, sizeof(PC1), K);
L = K >> 28;
L = (K >> 28) & 0xffffffff;
R = K & 0x0fffffff;
for (i = 0; i < 16; i++) {
@@ -217,7 +217,7 @@ void des_encrypt(DES_KEY *key, const unsigned char in[DES_BLOCK_SIZE],
T ^= L;
L = R;
R = T;
R = T & 0xffffffff;
}
T = ((uint64_t)L << 32) | R;