You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @FiloSottile ! Thanks for the cryptopals videos, they're awesome!
I know this is a silly thing, but I just wanted to point it out, because maybe someone wants to run the tests for the last two challenges in the fourth set and they're always failing trying to recover the last bytes of the signature. Since the sleep in the code is before the comparison of the bytes, for the last one, there's no noticeable timing difference between the two possible outcomes, because if the two bytes are different, it just returns false, but if they're the same, the loop ends and it returns true.
I guess you can always compare the fist signatureLen - 1 bytes, and just bruteforce the last one. Or just move the time.Sleep(pause) after the comparison (that's what I did to make the test pass).
Anyway, thanks again!
The text was updated successfully, but these errors were encountered:
Hi @FiloSottile ! Thanks for the cryptopals videos, they're awesome!
I know this is a silly thing, but I just wanted to point it out, because maybe someone wants to run the tests for the last two challenges in the fourth set and they're always failing trying to recover the last bytes of the signature. Since the sleep in the code is before the comparison of the bytes, for the last one, there's no noticeable timing difference between the two possible outcomes, because if the two bytes are different, it just returns
false
, but if they're the same, the loop ends and it returnstrue
.I guess you can always compare the fist
signatureLen - 1
bytes, and just bruteforce the last one. Or just move thetime.Sleep(pause)
after the comparison (that's what I did to make the test pass).Anyway, thanks again!
The text was updated successfully, but these errors were encountered: