From 7674c3a556b4c8c2f3cc497dd97fe106a648762f Mon Sep 17 00:00:00 2001 From: Jens Steube Date: Sat, 17 Feb 2018 21:28:02 +0100 Subject: [PATCH] Revert "Thread limits on bitsliced kernels no longer required" This reverts commit ba5f23474ef32a1603fc29c0e8a8ee7391db6525. --- src/interface.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/interface.c b/src/interface.c index ca1cc4fe9..c8b8f4049 100644 --- a/src/interface.c +++ b/src/interface.c @@ -25957,8 +25957,15 @@ u32 hashconfig_forced_kernel_threads (hashcat_ctx_t *hashcat_ctx) u32 kernel_threads = 0; + // DES kernels needs to have a minimum thread count only + // because of the bitsliced kernel and the workgroup division done on it + + if (hashconfig->hash_mode == 1500) kernel_threads = 64; // DES + if (hashconfig->hash_mode == 3000) kernel_threads = 64; // DES + if (hashconfig->hash_mode == 3100) kernel_threads = 64; // DES if (hashconfig->hash_mode == 3200) kernel_threads = 8; // Blowfish if (hashconfig->hash_mode == 7500) kernel_threads = 64; // RC4 + if (hashconfig->hash_mode == 8500) kernel_threads = 64; // DES if (hashconfig->hash_mode == 8900) kernel_threads = 16; // SCRYPT if (hashconfig->hash_mode == 9000) kernel_threads = 8; // Blowfish if (hashconfig->hash_mode == 9300) kernel_threads = 8; // SCRYPT @@ -25970,7 +25977,10 @@ u32 hashconfig_forced_kernel_threads (hashcat_ctx_t *hashcat_ctx) if (hashconfig->hash_mode == 10410) kernel_threads = 64; // RC4 if (hashconfig->hash_mode == 10500) kernel_threads = 64; // RC4 if (hashconfig->hash_mode == 13100) kernel_threads = 64; // RC4 + if (hashconfig->hash_mode == 14000) kernel_threads = 64; // DES + if (hashconfig->hash_mode == 14100) kernel_threads = 64; // DES if (hashconfig->hash_mode == 15700) kernel_threads = 1; // SCRYPT + if (hashconfig->hash_mode == 16000) kernel_threads = 64; // DES return kernel_threads; }