1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-22 16:18:09 +00:00

Small WPA improvement, do not check the same candidate twice for LE and BE

This commit is contained in:
jsteube 2017-06-16 11:33:49 +02:00
parent cf57365e7c
commit 8a3ed7fe75

View File

@ -1132,15 +1132,16 @@ __kernel void m02500_comp (__global pw_t *pws, __global const kernel_rule_t *rul
}
// the same code again, but with BE order for the t++
// note we dont need nonce_error_correction = 0, we already tested this above
for (u32 nonce_error_correction = 1; nonce_error_correction <= nonce_error_corrections; nonce_error_correction++)
for (u32 nonce_error_correction = 0; nonce_error_correction <= nonce_error_corrections; nonce_error_correction++)
{
u32 t = to;
t -= nonce_error_corrections / 2;
t += nonce_error_correction;
if (t == to) continue; // we already had this checked in the LE loop
if (wpa->nonce_compare < 0)
{
pke[15] = (pke[15] & ~0x000000ff) | (t >> 24);