2 ms·
There are increasingly few situations in which length extension really matters, because we know more about designing protocols than we did 20 years ago; even co
by tptacek 4y ago
There are increasingly few situations in which length extension really matters, because we know more about designing protocols than we did 20 years ago; even code that uses SHA3 or Blake2 tends to still use HMAC. Further, there are standard variants of SHA2 that don't have length extension (they're truncated and don't disclose their full state). It's better to not have length extension properties than to have them, but it's not really a big part of the desiderata.
- flatiron 4y agoI’m always confused when people slam sha on hmac. Is there a realtime sha back door I’m missing? Even sha 1 takes days/months to break.
- tptacek 4y agoI don't understand what you're asking here. Don't use HMAC as a password hash? HMAC keys should be a long string of uncorrelated bits, not ASCII strings?