SHA-accelerated Git
- From
- Jeffrey Walton <noloader@gmail.com>
- Date
- Jun 2, 2019, 10:43 UTC
- Message-ID
- <CAH8yC8nMcVuLeLWrVumLaz2Pbi3GugzgY-Bw3SMipjJkaph85Q@mail.gmail.com>
Hi Everyone,
I have a lot of experience with cutting in SHA acceleration. I have no experience with Git.
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.
Jeff