From 27f186321615aa6aa31e1d2a8bbf940dc46bdb19 Mon Sep 17 00:00:00 2001 From: Gabriele 'matrix' Gristina Date: Sun, 31 Jan 2016 19:17:33 +0100 Subject: [PATCH] Fixed __constant in m10410 (see PR #179 for details) --- OpenCL/m10410_a0.cl | 6 ++++-- OpenCL/m10410_a1.cl | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/OpenCL/m10410_a0.cl b/OpenCL/m10410_a0.cl index 1bc8b0f84..e116314e1 100644 --- a/OpenCL/m10410_a0.cl +++ b/OpenCL/m10410_a0.cl @@ -1,5 +1,7 @@ /** - * Author......: Jens Steube + * Authors.....: Jens Steube + * Gabriele Gristina + * * 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); } -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++) { diff --git a/OpenCL/m10410_a1.cl b/OpenCL/m10410_a1.cl index c1f4150f7..f1d7f59a3 100644 --- a/OpenCL/m10410_a1.cl +++ b/OpenCL/m10410_a1.cl @@ -1,5 +1,7 @@ /** - * Author......: Jens Steube + * Authors.....: Jens Steube + * Gabriele Gristina + * * 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); } -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++) {