Re:A Rust-based TLS library outperformed OpenSSL in almost e...
by ReidZB on Friday July 19, 2019 @04:43PM
(#20482296)
I'd expect very few clients to negotiate using SHA-384. It's widely viewed as overkill compared to SHA-256, and it hurts performance.
I'm not saying it invalidates the benchmark results or anything—I just wanted to address your "not used" question.
Re:A Rust-based TLS library outperformed OpenSSL in almost e...
by dagenix on Friday July 19, 2019 @07:31PM
(#20483276)
SHA-384 can actually be faster than SHA-256 is some cases. The reason is that SHA-256 used 64 rounds with 32 bit words, while SHA-384 uses 80 rounds with 64 bit words. So, each block processed by SHA-384 is twice as big but uses less than twice as many rounds.
Re:A Rust-based TLS library outperformed OpenSSL in almost e...
by ReidZB on Friday July 19, 2019 @08:04PM
(#20483404)
Oh yes, definitely. But SHA-384's output is 128 bits wider, which uses more bandwidth. Although for the AEAD ciphersuites, it doesn't make much of a difference, admittedly.
Re:A Rust-based TLS library outperformed OpenSSL in almost e...
by dagenix on Friday July 19, 2019 @11:04PM
(#20483947)
There is the not so widely used SHA-512/256 for that case - the speed of the 64 bit variants with a 256 bit output.
Re:A Rust-based TLS library outperformed OpenSSL in almost e...
by brobinson on Friday July 19, 2019 @05:57PM
(#20482787)
Isn't SHA-256 vulnerable to length extension attacks?
Re:A Rust-based TLS library outperformed OpenSSL in almost e...
by unscaled on Friday July 19, 2019 @06:26PM
(#20482949)
Yes, but so is SHA-384 and that is not relevant for the TLS context.
Re:A Rust-based TLS library outperformed OpenSSL in almost e...
by MerryMage on Friday July 19, 2019 @07:44PM
(#20483320)
384 is not vulnerable to length extension attacks precisely because it is truncated. The output is not he full internal state.
The speed advantage of SHA-512 and the advantage of truncation is why some more exotic variants like SHA-512/256 (SHA-512 truncated to 256 bits) are used in newer protocols.
and 42% performance increase in TLS 1.3 handshakes is even bigger.