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:
parent
894140b816
commit
f6d8da52a1
@ -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]; \
|
||||
|
@ -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]; \
|
||||
|
Loading…
Reference in New Issue
Block a user