1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-12-16 11:48:15 +00:00

Merge pull request #188 from gm4tr1x/AppleOpenCLv3

Fixed __constant in m10410 (see PR #179 for details)
This commit is contained in:
Jens Steube 2016-01-31 19:18:45 +01:00
commit 3149efd178
2 changed files with 8 additions and 4 deletions

View File

@ -1,5 +1,7 @@
/** /**
* Author......: Jens Steube <jens.steube@gmail.com> * Authors.....: Jens Steube <jens.steube@gmail.com>
* Gabriele Gristina <matrix@hashcat.net>
*
* License.....: MIT * License.....: MIT
*/ */
@ -85,7 +87,7 @@ static void rc4_init_16 (__local RC4_KEY *rc4_key, const u32 data[4])
j += rc4_key->S[255] + d0; swap (rc4_key, 255, j); j += rc4_key->S[255] + d0; swap (rc4_key, 255, j);
} }
static u8 rc4_next_16 (__local RC4_KEY *rc4_key, u8 i, u8 j, __constant u32 in[4], u32 out[4]) static u8 rc4_next_16 (__local RC4_KEY *rc4_key, u8 i, u8 j, __constant u32 *in, u32 out[4])
{ {
for (u32 k = 0; k < 4; k++) for (u32 k = 0; k < 4; k++)
{ {

View File

@ -1,5 +1,7 @@
/** /**
* Author......: Jens Steube <jens.steube@gmail.com> * Authors.....: Jens Steube <jens.steube@gmail.com>
* Gabriele Gristina <matrix@hashcat.net>
*
* License.....: MIT * License.....: MIT
*/ */
@ -83,7 +85,7 @@ static void rc4_init_16 (__local RC4_KEY *rc4_key, const u32 data[4])
j += rc4_key->S[255] + d0; swap (rc4_key, 255, j); j += rc4_key->S[255] + d0; swap (rc4_key, 255, j);
} }
static u8 rc4_next_16 (__local RC4_KEY *rc4_key, u8 i, u8 j, __constant u32 in[4], u32 out[4]) static u8 rc4_next_16 (__local RC4_KEY *rc4_key, u8 i, u8 j, __constant u32 *in, u32 out[4])
{ {
for (u32 k = 0; k < 4; k++) for (u32 k = 0; k < 4; k++)
{ {