![]() |
OpenCL printf final digest value is wrong - Printable Version +- hashcat Forum (https://hashcat.net/forum) +-- Forum: Support (https://hashcat.net/forum/forum-3.html) +--- Forum: hashcat (https://hashcat.net/forum/forum-45.html) +--- Thread: OpenCL printf final digest value is wrong (/thread-10632.html) |
OpenCL printf final digest value is wrong - 465w54e5 - 02-21-2022 Hey guys, thanks for clicking my question. I the last days i started to dive into the hashcat source code. Currently i am looking a the m01400_a3-optimized.cl kernel. I wanted to debug it a bit by printing the final digest value that is calculated. However, the value that i print is not matching the final hash. The digest values are stored in u32x type, i tried multiple ways to format the value but it never seems to fit the hash. Am i missing a step? Or how could i print the final hash before exiting the kernel? I would be verry thankful if you could help me out, i will attach a screenshot to show what i mean. My output starts at FINAL - Werte. I changed the kernel m01400_a3-optimized.cl at Line 291. ![]() RE: OpenCL printf final digest value is wrong - 465w54e5 - 02-22-2022 i found the solution to this. The optimized kernel stops at the second last step of sha256. The final step is to add the initial values of the start of the message shedule. If you add the contant value SHA256M_A to a (SHA256M_A + a) you will get the right value. |