hashcat Forum
How can i find the number of rounds in sha512(-m 1700). - Printable Version

+- hashcat Forum (https://hashcat.net/forum)
+-- Forum: Misc (https://hashcat.net/forum/forum-15.html)
+--- Forum: General Talk (https://hashcat.net/forum/forum-33.html)
+--- Thread: How can i find the number of rounds in sha512(-m 1700). (/thread-11954.html)



How can i find the number of rounds in sha512(-m 1700). - joys - 05-06-2024

The default number of rounds is 80, but I can't find that in the code. And is the hash value below the hash value of “hashcat”? I would appreciate it if you could let me know.

static const char *ST_PASS        = "hashcat";
static const char *ST_HASH        = "82a9dda829eb7f8ffe9fbe49e45d47d2dad9664fbb7adf72492e3c81ebd3e29134d9bc12212bf83c6840f10e8246b9db54a4859b7ccd0123d86e5872c1e5082f";



RE: How can i find the number of rounds in sha512(-m 1700). - penguinkeeper - 05-06-2024

Hashing steps:
https://github.com/hashcat/hashcat/blob/6716447dfce969ddde42a9abe0681500bee0df48/OpenCL/m01700_a3-optimized.cl#L65-L83

Expansion:
https://github.com/hashcat/hashcat/blob/6716447dfce969ddde42a9abe0681500bee0df48/OpenCL/m01700_a3-optimized.cl#L45-L63

Rounds:
https://github.com/hashcat/hashcat/blob/6716447dfce969ddde42a9abe0681500bee0df48/OpenCL/m01700_a3-optimized.cl#L87-L100


RE: How can i find the number of rounds in sha512(-m 1700). - DanielG - 05-06-2024

1. I'm not sure but it looks like here https://github.com/hashcat/hashcat/blob/master/OpenCL/inc_hash_sha512.cl#L114 it defines 80 in the rounds

2. yes, see also https://hashcat.net/wiki/doku.php?id=example_hashes which hash all the example hashes which are almost always "hashcat" unless specified otherwise


RE: How can i find the number of rounds in sha512(-m 1700). - penguinkeeper - 05-06-2024

1) Yes, Hashcat has several bits of code that can generate sha512, that's one of them, which also does 80 rounds. If you wanted to reduce Hashcat to 79 rounds, it won't be amazingly easy but is possible but hasn't been tested officially

2) Correct, almost all of them are just "hashcat"
$ echo -n hashcat | sha512sum
82a9dda829eb7f8ffe9fbe49e45d47d2dad9664fbb7adf72492e3c81ebd3e29134d9bc12212bf83c6840f10e8246b9db54a4859b7ccd0123d86e5872c1e5082f -


RE: How can i find the number of rounds in sha512(-m 1700). - joys - 05-06-2024

thankyou so much!