1
mirror of https://github.com/hashcat/hashcat synced 2024-11-20 23:27:31 +01:00

osx: -m 3200 = bcrypt needs a volatile variable

This commit is contained in:
philsmd 2017-03-02 22:24:12 +01:00
parent 54ad27da7d
commit fbb1f92d2b
No known key found for this signature in database
GPG Key ID: 4F25D016D9D6A8AF
2 changed files with 10 additions and 1 deletions

View File

@ -332,6 +332,14 @@ __constant u32a c_sbox3[256] =
}
#endif
// temporary hack for Apple Iris GPUs (with as little performance drop as possible)
#ifdef IS_APPLE
#define TMP_TYPE volatile u32
#else
#define TMP_TYPE u32
#endif
#define BF_ENCRYPT(L,R) \
{ \
L ^= P[0]; \
@ -353,7 +361,7 @@ __constant u32a c_sbox3[256] =
BF_ROUND (L, R, 15); \
BF_ROUND (R, L, 16); \
\
u32 tmp; \
TMP_TYPE tmp; \
\
tmp = R; \
R = L; \

View File

@ -35,6 +35,7 @@
##
- Workaround added for NVidia OpenCL runtime: RACF kernel requires EBCDIC lookup to be done on shared memory
- Workaround added for Apple OpenCL runtime: bcrypt kernel requires a volatile variable because of a compiler optimization bug
- Workaround added for AMDGPU-Pro OpenCL runtime: AES encrypt and decrypt Invertkey function was calculated wrong in certain cases
- Workaround added for AMDGPU-Pro OpenCL runtime: RAR3 kernel require a volatile variable to work correctly