diff --git a/OpenCL/m03200.cl b/OpenCL/m03200.cl index 8b03d39f8..84bf9e563 100644 --- a/OpenCL/m03200.cl +++ b/OpenCL/m03200.cl @@ -324,6 +324,22 @@ __constant u32 c_sbox3[256] = } #endif +#ifdef IS_UNKNOWN +#define BF_ROUND(L,R,N) \ +{ \ + uchar4 c = as_uchar4 ((L)); \ + \ + u32 tmp; \ + \ + tmp = S0[c.s3]; \ + tmp += S1[c.s2]; \ + tmp ^= S2[c.s1]; \ + tmp += S3[c.s0]; \ + \ + (R) ^= tmp ^ P[(N)]; \ +} +#endif + #define BF_ENCRYPT(L,R) \ { \ L ^= P[0]; \ diff --git a/OpenCL/m09000.cl b/OpenCL/m09000.cl index d79e77e3c..232d1c50f 100644 --- a/OpenCL/m09000.cl +++ b/OpenCL/m09000.cl @@ -324,6 +324,22 @@ __constant u32 c_sbox3[256] = } #endif +#ifdef IS_UNKNOWN +#define BF_ROUND(L,R,N) \ +{ \ + uchar4 c = as_uchar4 ((L)); \ + \ + u32 tmp; \ + \ + tmp = S0[c.s3]; \ + tmp += S1[c.s2]; \ + tmp ^= S2[c.s1]; \ + tmp += S3[c.s0]; \ + \ + (R) ^= tmp ^ P[(N)]; \ +} +#endif + #define BF_ENCRYPT(L,R) \ { \ L ^= P[0]; \