mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-22 08:08:10 +00:00
fixes #2341: electrum 4/5 mod_512 () infinite loop fix
This commit is contained in:
parent
2d8893110c
commit
53d2e45795
@ -512,6 +512,9 @@ DECLSPEC void mod_512 (u32 *n)
|
||||
|
||||
// substract (a -= r):
|
||||
|
||||
if ((r[ 0] | r[ 1] | r[ 2] | r[ 3] | r[ 4] | r[ 5] | r[ 6] | r[ 7] |
|
||||
r[ 8] | r[ 9] | r[10] | r[11] | r[12] | r[13] | r[14] | r[15]) == 0) break;
|
||||
|
||||
r[ 0] = a[ 0] - r[ 0];
|
||||
r[ 1] = a[ 1] - r[ 1];
|
||||
r[ 2] = a[ 2] - r[ 2];
|
||||
|
Loading…
Reference in New Issue
Block a user