Better HN
topnewbestaskshowjobs
Log inSign up

sha2throwaway

4 karma · joined Aug 8, 2017 (9y ago) · 1 submissions

Submissions

comment 9y ago · link · parent

Actually you do get some added security, because it prevents the length extension attacks sha-2 and related hash functions have thanks to the Merkle-Damgard construction [0]. Specifically, by truncating the hash, the output no longer contains enough state to perform the attack.

[0] https://en.wikipedia.org/wiki/Length_extension_attack