Hi Jeffrey, On Sun, 2 Jun 2019, Jeffrey Walton wrote: > On Sun, Jun 2, 2019 at 7:21 AM Michal Suchánek <msuchanek@xxxxxxx> wrote: > > > > On Sun, 2 Jun 2019 06:43:07 -0400 > > Jeffrey Walton <noloader@xxxxxxxxx> wrote: > > > > > I have a lot of experience with cutting in SHA acceleration. I have > > > no experience with Git. > > > > sha1 is dead. Git is planning to move away from it. It will not happen > > overnight but it probably does not make sense to accelerate it at this > > point. > > > > https://github.com/git/git/blob/next/Documentation/technical/hash-function-transition.txt > > SHA-1 has been dead for years. That has not stopped Git yet :) Even worse. Git has changed from an OpenSSL accelerated SHA-1 to a collision-detecting SHA-1 (sha1dc). As long as your accelerated SHA-1 cannot guarantee the same level of safeguards as sha1dc, there is a negligible likelihood that your patches will be accepted. > Comparing against a standard C/C++ implementation, Git will see a 3x to > 6x speedup depending on the platform and algorithm. Indeed, this reflects my findings. It's just that we struck the balance on the other side of performance, in favor of preventing possible attack vectors as best as we can. Ciao, Johannes