TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Speeding up and strengthening HTTPS connections for Chrome on Android

111 pointsby helperabout 11 years ago

7 comments

tptacekabout 11 years ago
This is great news.<p>ChaCha20 is a refinement of Salsa20, which is probably Bernstein&#x27;s best-known crypto design (it survived the eSTREAM contest to become one of the final portfolio ciphers). Bernstein wrote an extremely readable design paper on Salsa20:<p><a href="http://cr.yp.to/snuffle/salsafamily-20071225.pdf" rel="nofollow">http:&#x2F;&#x2F;cr.yp.to&#x2F;snuffle&#x2F;salsafamily-20071225.pdf</a><p>Salsa20 is essentially a fast hash function run in a carefully designed counter mode. If you don&#x27;t care about speed, you can turn any secure hash function into a stream cipher by, for instance, running the HMAC of that hash in counter mode. Here, Bernstein has designed the Formula 1 car of hash cores to run quickly in software without side channels as the basis for a counter-mode stream cipher.<p>Poly1305 is, like the GHASH construction from GCM, a &quot;polynomial MAC&quot;, which is the modern way to say &quot;cryptographic CRC&quot;. Poly1305 was designed more carefully for software performance than GHASH. In particular, because it&#x27;s based on binary fields, for competitive performance GHASH requires either hardware support (such as the Intel CLMUL instructions) or a table-based implementation that potentially leaks secrets from cache timing. Poly1305 is based on prime fields and is fast in software on platforms without instructions tailored to it. It is also mercifully easier to code (though maybe I&#x27;m just irrationally biased against binary field polynomial math).
评论 #7644623 未加载
aglabout 11 years ago
Details: <a href="https://www.imperialviolet.org/2014/02/27/tlssymmetriccrypto.html" rel="nofollow">https:&#x2F;&#x2F;www.imperialviolet.org&#x2F;2014&#x2F;02&#x2F;27&#x2F;tlssymmetriccrypto...</a>
评论 #7644701 未加载
评论 #7645704 未加载
评论 #7644660 未加载
Scaevolusabout 11 years ago
&quot;Poly1305 also saves network bandwidth, since its output is only 16 bytes compared to HMAC-SHA1, which is 20 bytes. This represents a 16% reduction of the TLS network overhead incurred when using older ciphersuites such as RC4-SHA or AES-SHA.&quot;<p>Does that mean 25B-&gt;21B per-packet overhead? What percentage overhead are TLS headers?
评论 #7644002 未加载
评论 #7644399 未加载
jcampbell1about 11 years ago
Does anyone know why google doesn&#x27;t offer a webserver?<p>I want SPDY, QUIC, and whatever cypher ordering magic is required to make my service faster on android. Unfortunately I probably won&#x27;t be able to deploy this for at least a year because I have to wait on nginx and openSSL. By the time I could reasonably deploy this, shipping android phones will have the hardware to make this irrelevant.<p>Maybe google sees their in house webserver as a competitive advantage. Maybe their own internal infrastructure is too complicated to pull out a simple useful webserver.
评论 #7644841 未加载
评论 #7646344 未加载
评论 #7645006 未加载
awdaabout 11 years ago
&gt; Poly1305 also saves network bandwidth, since its output is only 16 bytes compared to HMAC-SHA1, which is 20 bytes.<p>You could also just truncate HMAC-SHA1 to 16 bytes, right?
评论 #7644486 未加载
mrsaintabout 11 years ago
I&#x27;d love to offer ChaCha20 server-side, but I am currently using the default package of OpenSSL from Debian Wheezy which doesn&#x27;t support the cipher. Are there already official OpenSSL builds available with ChaCha20 enabled, or does it still require running the patch from the Chromium team? If available, it&#x27;d be nice if someone could backport it.
DiabloD3about 11 years ago
It seems no major distro builds their OpenSSL with the Salsa20+Poly1305 patches yet.