mirror of
https://github.com/hashcat/hashcat.git
synced 2024-12-22 14:48:12 +00:00
Fixed compiler warning (signed shift result) for kernel 1600
This commit is contained in:
parent
4c0e520fd8
commit
61244200fc
@ -20,8 +20,8 @@
|
||||
#define COMPARE_S "OpenCL/check_single_comp4.c"
|
||||
#define COMPARE_M "OpenCL/check_multi_comp4.c"
|
||||
|
||||
#define md5apr1_magic0 0x72706124
|
||||
#define md5apr1_magic1 0x00002431
|
||||
#define md5apr1_magic0 0x72706124u
|
||||
#define md5apr1_magic1 0x00002431u
|
||||
|
||||
static void md5_transform (const u32 w0[4], const u32 w1[4], const u32 w2[4], const u32 w3[4], u32 digest[4])
|
||||
{
|
||||
@ -449,21 +449,21 @@ static void append_sign (u32 block0[4], u32 block1[4], const u32 block_len)
|
||||
break;
|
||||
|
||||
case 1:
|
||||
block0[0] = block0[0] | md5apr1_magic0 << 8;
|
||||
block0[1] = md5apr1_magic0 >> 24 | md5apr1_magic1 << 8;
|
||||
block0[2] = md5apr1_magic1 >> 24;
|
||||
block0[0] = block0[0] | md5apr1_magic0 << 8u;
|
||||
block0[1] = md5apr1_magic0 >> 24u | md5apr1_magic1 << 8u;
|
||||
block0[2] = md5apr1_magic1 >> 24u;
|
||||
break;
|
||||
|
||||
case 2:
|
||||
block0[0] = block0[0] | md5apr1_magic0 << 16;
|
||||
block0[1] = md5apr1_magic0 >> 16 | md5apr1_magic1 << 16;
|
||||
block0[2] = md5apr1_magic1 >> 16;
|
||||
block0[0] = block0[0] | md5apr1_magic0 << 16u;
|
||||
block0[1] = md5apr1_magic0 >> 16u | md5apr1_magic1 << 16u;
|
||||
block0[2] = md5apr1_magic1 >> 16u;
|
||||
break;
|
||||
|
||||
case 3:
|
||||
block0[0] = block0[0] | md5apr1_magic0 << 24;
|
||||
block0[1] = md5apr1_magic0 >> 8 | md5apr1_magic1 << 24;
|
||||
block0[2] = md5apr1_magic1 >> 8;
|
||||
block0[0] = block0[0] | md5apr1_magic0 << 24u;
|
||||
block0[1] = md5apr1_magic0 >> 8u | md5apr1_magic1 << 24u;
|
||||
block0[2] = md5apr1_magic1 >> 8u;
|
||||
break;
|
||||
|
||||
case 4:
|
||||
@ -472,21 +472,21 @@ static void append_sign (u32 block0[4], u32 block1[4], const u32 block_len)
|
||||
break;
|
||||
|
||||
case 5:
|
||||
block0[1] = block0[1] | md5apr1_magic0 << 8;
|
||||
block0[2] = md5apr1_magic0 >> 24 | md5apr1_magic1 << 8;
|
||||
block0[3] = md5apr1_magic1 >> 24;
|
||||
block0[1] = block0[1] | md5apr1_magic0 << 8u;
|
||||
block0[2] = md5apr1_magic0 >> 24u | md5apr1_magic1 << 8u;
|
||||
block0[3] = md5apr1_magic1 >> 24u;
|
||||
break;
|
||||
|
||||
case 6:
|
||||
block0[1] = block0[1] | md5apr1_magic0 << 16;
|
||||
block0[2] = md5apr1_magic0 >> 16 | md5apr1_magic1 << 16;
|
||||
block0[3] = md5apr1_magic1 >> 16;
|
||||
block0[1] = block0[1] | md5apr1_magic0 << 16u;
|
||||
block0[2] = md5apr1_magic0 >> 16u | md5apr1_magic1 << 16u;
|
||||
block0[3] = md5apr1_magic1 >> 16u;
|
||||
break;
|
||||
|
||||
case 7:
|
||||
block0[1] = block0[1] | md5apr1_magic0 << 24;
|
||||
block0[2] = md5apr1_magic0 >> 8 | md5apr1_magic1 << 24;
|
||||
block0[3] = md5apr1_magic1 >> 8;
|
||||
block0[1] = block0[1] | md5apr1_magic0 << 24u;
|
||||
block0[2] = md5apr1_magic0 >> 8u | md5apr1_magic1 << 24u;
|
||||
block0[3] = md5apr1_magic1 >> 8u;
|
||||
break;
|
||||
|
||||
case 8:
|
||||
@ -495,21 +495,21 @@ static void append_sign (u32 block0[4], u32 block1[4], const u32 block_len)
|
||||
break;
|
||||
|
||||
case 9:
|
||||
block0[2] = block0[2] | md5apr1_magic0 << 8;
|
||||
block0[3] = md5apr1_magic0 >> 24 | md5apr1_magic1 << 8;
|
||||
block1[0] = md5apr1_magic1 >> 24;
|
||||
block0[2] = block0[2] | md5apr1_magic0 << 8u;
|
||||
block0[3] = md5apr1_magic0 >> 24u | md5apr1_magic1 << 8u;
|
||||
block1[0] = md5apr1_magic1 >> 24u;
|
||||
break;
|
||||
|
||||
case 10:
|
||||
block0[2] = block0[2] | md5apr1_magic0 << 16;
|
||||
block0[3] = md5apr1_magic0 >> 16 | md5apr1_magic1 << 16;
|
||||
block1[0] = md5apr1_magic1 >> 16;
|
||||
block0[2] = block0[2] | md5apr1_magic0 << 16u;
|
||||
block0[3] = md5apr1_magic0 >> 16u | md5apr1_magic1 << 16u;
|
||||
block1[0] = md5apr1_magic1 >> 16u;
|
||||
break;
|
||||
|
||||
case 11:
|
||||
block0[2] = block0[2] | md5apr1_magic0 << 24;
|
||||
block0[3] = md5apr1_magic0 >> 8 | md5apr1_magic1 << 24;
|
||||
block1[0] = md5apr1_magic1 >> 8;
|
||||
block0[2] = block0[2] | md5apr1_magic0 << 24u;
|
||||
block0[3] = md5apr1_magic0 >> 8u | md5apr1_magic1 << 24u;
|
||||
block1[0] = md5apr1_magic1 >> 8u;
|
||||
break;
|
||||
|
||||
case 12:
|
||||
@ -518,21 +518,21 @@ static void append_sign (u32 block0[4], u32 block1[4], const u32 block_len)
|
||||
break;
|
||||
|
||||
case 13:
|
||||
block0[3] = block0[3] | md5apr1_magic0 << 8;
|
||||
block1[0] = md5apr1_magic0 >> 24 | md5apr1_magic1 << 8;
|
||||
block1[1] = md5apr1_magic1 >> 24;
|
||||
block0[3] = block0[3] | md5apr1_magic0 << 8u;
|
||||
block1[0] = md5apr1_magic0 >> 24u | md5apr1_magic1 << 8u;
|
||||
block1[1] = md5apr1_magic1 >> 24u;
|
||||
break;
|
||||
|
||||
case 14:
|
||||
block0[3] = block0[3] | md5apr1_magic0 << 16;
|
||||
block1[0] = md5apr1_magic0 >> 16 | md5apr1_magic1 << 16;
|
||||
block1[1] = md5apr1_magic1 >> 16;
|
||||
block0[3] = block0[3] | md5apr1_magic0 << 16u;
|
||||
block1[0] = md5apr1_magic0 >> 16u | md5apr1_magic1 << 16u;
|
||||
block1[1] = md5apr1_magic1 >> 16u;
|
||||
break;
|
||||
|
||||
case 15:
|
||||
block0[3] = block0[3] | md5apr1_magic0 << 24;
|
||||
block1[0] = md5apr1_magic0 >> 8 | md5apr1_magic1 << 24;
|
||||
block1[1] = md5apr1_magic1 >> 8;
|
||||
block0[3] = block0[3] | md5apr1_magic0 << 24u;
|
||||
block1[0] = md5apr1_magic0 >> 8u | md5apr1_magic1 << 24u;
|
||||
block1[1] = md5apr1_magic1 >> 8u;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user