Commit Graph

50 Commits (124e1fd40ac766b7f095e93834dc3d8295984369)

Author SHA1 Message Date
Jens Steube 7b24986096 Add important checks for pw_len == -1 to avoid out of boundary read/writes
2 years ago
Gabriele Gristina 9d36245d51 Kernels: Set the default Address Space Qualifier for any pointer, refactored / updated KERN_ATTR macros and rc4 cipher functions, in order to support Apple Metal runtime
2 years ago
Jens Steube 4934e92cda OpenCL Runtime: Workaround a problem of the AMD OpenCL GPU driver under macOS which results in false negatives due to changes in the kernel crypto library
3 years ago
Jens Steube 9bf0f36d0a Get rid of MAYBE_VOLATILE for context position by replacing it with zero length check
3 years ago
Jens Steube 9813811493 Remove truncation of buffer in hc_enc_next() to workaround AMD JiT compiler (legacy) issue
3 years ago
Jens Steube 0439f0c4a1 Refactor UTF8 to UTF16 conversion from fixed size to a dynamic size using a context struct. This allows handle buffer sizes of arbitrary length for conversion
3 years ago
Jens Steube b7dffd9259 Improve performance for UTF8->UTF16 conversion
3 years ago
Jens Steube ee26805138 In UTF8 to UTF16 conversion, reserve enough room to handle very long UTF8 inputs
3 years ago
Jens Steube d343e2c4a0 Added support for true UTF8 to UTF16 conversion in kernel crypto library
3 years ago
Jens Steube 4c85c0e54f Revert a671d501aa
4 years ago
Jens Steube 89119bf24a Add missing inc_platform.h include
5 years ago
Jens Steube 38c1029f2e Need volatile for IRIS GPU on Mac OSX for -m 2500 and -m 2501
5 years ago
jsteube 74e3ede391 Test optimization for kernel include in pure mode
5 years ago
jsteube a671d501aa Optimize some xxx_hmac_init functions
5 years ago
jsteube c34f75fe2d Optimize some xxx_hmac_final functions
5 years ago
jsteube 66d94b06e4 Get rid of src/rp_kernel_on_cpu.c and src/rp_kernel_on_cpu_optimized.c and use OpenCL emulated kernel version
5 years ago
jsteube e80b1838e8 Rename some functions in inc_common.cl to avoid conflicts with bitops.c
5 years ago
jsteube adeeaee84a Replace __kernel, __constant, __global and __local qualifiers with macro for better control
5 years ago
jsteube 7d4bea41a0 Get rid of OpenCL/inc_hash_constants.h and OpenCL/inc_hash_functions.cl
5 years ago
jsteube 84d6b8ecc1 Add function prototypes in OpenCL kernels to make some compilers happy
5 years ago
jsteube dc9279c95c New Strategy: Instead of using volatile, mark the mode as unstable. Remove all volatiles
5 years ago
jsteube dad05d9f69 Testing: Workaround some AMD OpenCL runtime segmentation faults
6 years ago
Jens Steube 02a2495349 Switched array pointer types in function declarations in order to be compatible with OpenCL 2.0
6 years ago
Jens Steube a15c165773 Revert the pos == 0 change due to some unexpected results on nvidia
6 years ago
jsteube b626e7f61b Optimize update functions in inc_hash_* helper files by testing for pos == 0
6 years ago
jsteube 5951207365 Get rid of some old volatiles
6 years ago
jsteube 3e08750900 OpenCL Kernels: Add general function declaration keyword (static inline)
6 years ago
jsteube 503f676cb0 Remove static keywords from OpenCL functions, they can cause old NV JiT compiler to fail
7 years ago
jsteube 51dd982b12 Bring back some volatile for AMD
7 years ago
jsteube 9125062ffc Move volatiles for AMD closer to the problem
7 years ago
jsteube 938c281ee0 Resurrect some volatile variables in order to correctly compile pure kernels on AMD drivers
7 years ago
jsteube 967e96728d Make all the OpenCL kernel function includes static
7 years ago
jsteube 50aeade65c Add pure kernels for NetNTLMv1 / NetNTLMv1+ESS
7 years ago
jsteube 5e34ec348e Optimize kernels for ROCm 1.6
7 years ago
jsteube eae9329761 Workaround some AMD JiT compiler segfault on complex kernels
7 years ago
jsteube 7205f450dd Backport more HMAC functions in inc_hash_xxx.cl from global to private
7 years ago
jsteube c4098e2230 Fix invalid use of a non-vector function from within a vector function
7 years ago
jsteube 4e0972ce3a Add xxx_update_vector_swap(), xxx_update_vector_utf16le_swap() and xxx_update_vector_utf16beN() for later use
7 years ago
jsteube 9c6c21490f Add *_hmac_init_swap for later use
7 years ago
jsteube 9c12459852 Add HMAC vector functions to inc_hash_*
7 years ago
jsteube c512e0c01a Add example -L kernel for algorithms with appended salt in utf16le
7 years ago
jsteube 9b6c6df53d Add xxx_nit_vector_from_scalar() to all inc_hash_xxx.cl includes
7 years ago
jsteube 8a6e3a5275 Add support in HMAC for passwords larger than block size of the underlaying hash
7 years ago
philsmd 03f4e2b3dc minor typo fixed in comment for the new update() functions
7 years ago
jsteube b0d5995689 Backport changes from inc_hash_md5.cl to inc_hash_md4.cl
7 years ago
jsteube 120cf1d1ba Removed some unused functions, added -m 500 kernel with length 256 support but not activated because too slow
7 years ago
jsteube cea78024bf Fix -m 2100 cracking if (password length & 31) == 0
7 years ago
jsteube ad242c2f12 Working example of generic salt up to length 256 for mode 2100
7 years ago
jsteube 2c92465036 Add HMAC functionality to inc_hash_md4.cl and make DCC2 use it, resulting in support for longer domain names
7 years ago
jsteube 4174f06008 PoC using a length-independant MD4 hash processing in -m 2100
7 years ago