1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-22 08:08:10 +00:00

Fix blowfish based algorithms for unknown opencl platform usage

This commit is contained in:
jsteube 2016-01-04 22:21:13 +01:00
parent 894140b816
commit f6d8da52a1
2 changed files with 32 additions and 0 deletions

View File

@ -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]; \

View File

@ -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]; \