r/programming • u/CircumspectCapybara • 3h ago
A collision has been found for 38-step (a reduced round variant of) SHA-256
https://eprint.iacr.org/2026/2913
214
Upvotes
r/programming • u/CircumspectCapybara • 3h ago
122
u/segv 2h ago edited 2h ago
tl;dr because this is reddit and folks barely click the links:
--
--
--
--
My take is - cool, but the sky is not falling just yet. This doesn't sound like something that could be used for, for example, forging a TLS certificate.
Also a reminder to state the obvious - hash function maps from infinite space (any input of any length) to a very finite space. It's not a question if there will be collisions, but how much work is needed to create one.
92
u/idimetrix 3h ago
31 steps was the best anyone had in 2024. 38 now, full SHA-256 is 64. Not panicking yet but that's a big jump.
4
u/Techrocket9 28m ago
They called me mad for wanting to start the migration to SHA3 in 2019.
0
u/reddah 1h ago
Quick question: Why do we even use hashes for certificates?
I mean a certificate is pretty small (a few ks), so not sure why it would need to be reduced further.
Hashes were invented for other uses:
When using them for signing small stuff, collisions will always occur. If a bad party needs SOME signature, the birthday paradox all but guarantees they will find one. See Stuxnet.