Hi
i was looking at the wpa cl file: m02500.cl
It looks that there is many similar lines.. which may be replaced with one function or something..
I want to optimize it a bit to get better speed
can someone explain it line by line ?
thank you
Yeah a function or something
(02-10-2017, 02:43 PM)atom Wrote: [ -> ]Yeah a function or something
can you explain it line by line? im sure i can make a change
The thing is if you would have any experience in programming you wouldn't have said so. A function will not make it faster, it will make no difference at all. The compiler will recognize a fixed number of iterations and automatically unroll it back. Finally a function only makes it harder to read, hence the code is as it is.
(02-10-2017, 03:00 PM)atom Wrote: [ -> ]The thing is if you would have any experience in programming you wouldn't have said so. A function will not make it faster, it will make no difference at all. The compiler will recognize a fixed number of iterations and automatically unroll it back. Finally a function only makes it harder to read, hence the code is as it is.
Well, i'm still trying to understand it all,, i see there are 11 phases, can you explain what do each one do?
It's not hard to understand if you know OpenCL in detail, Crypto schemes like PBKDF2 and how to optimize it as an attacker, HMAC and how to optimize it as an attacker, SHA1 and how to optimize it as an attacker, some Assembly coding for the registers, general GPU architecture for the management, the WPA handshake and how to crack it and most of the bugs in the OpenCL runtime of the different vendors and some other stuff but most important: lots of plain C and of course a good understand of the hashcat architecture
Yeah, like just put that in a function.