hashcat Forum
m02500.cl EXPLAIN NEEDED - Printable Version

+- hashcat Forum (https://hashcat.net/forum)
+-- Forum: Misc (https://hashcat.net/forum/forum-15.html)
+--- Forum: User Contributions (https://hashcat.net/forum/forum-25.html)
+--- Thread: m02500.cl EXPLAIN NEEDED (/thread-6286.html)



m02500.cl EXPLAIN NEEDED - abdou99 - 02-10-2017

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


RE: m02500.cl EXPLAIN NEEDED - atom - 02-10-2017

Yeah a function or something


RE: m02500.cl EXPLAIN NEEDED - abdou99 - 02-10-2017

(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


RE: m02500.cl EXPLAIN NEEDED - atom - 02-10-2017

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.


RE: m02500.cl EXPLAIN NEEDED - abdou99 - 02-11-2017

(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?


RE: m02500.cl EXPLAIN NEEDED - atom - 02-13-2017

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


RE: m02500.cl EXPLAIN NEEDED - rico - 02-13-2017

Yeah, like just put that in a function.


RE: m02500.cl EXPLAIN NEEDED - atom - 02-13-2017

or something!