Hello, On Sun, 2 Jun 2019 06:43:07 -0400 Jeffrey Walton <noloader@xxxxxxxxx> wrote: > Hi Everyone, > > 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 > > If someone would setup a fork and provide a call like: > > // https://github.com/torvalds/linux/blob/master/arch/x86/include/asm/cpufeature.h > // Or whatever the project prefers > has_x86_sha = cpu_feature_enabled(X86_FEATURE_SHA_NI); > > if (has_x86_sha) > { > sha1_hash_block(state, ptr, size); > } > > And provide a stub: > > sha1_hash_block(uint32_t* state, uint8_t* ptr, size_t size) > { > } > > Then I would be happy to fill in the pieces. > > I can also help with ARMv8. > > In fact, if you want to use Andy Polyakov's asm from Cryptogams > (https://www.openssl.org/~appro/cryptogams/), then I can help with > that, too. Andy's skills are renowned and his code is used in the > kernel. And buggy. I am not referring to the sha1 implementation in particular but to the hand-crafted assembly in general. Do you have some performance data that shows significant improvement of common tasks that makes maintaining this hackery worthwhile? Thanks Michal