Hi Everyone,
Re: https://www.lysator.liu.se/~nisse/nettle/nettle.html#SHA1
Does SHA-1 switch to hardware acceleration for x86 and ARMv8 automatically? Or is a different call required?
Jeff
Jeffrey Walton noloader@gmail.com writes:
Does SHA-1 switch to hardware acceleration for x86 and ARMv8 automatically? Or is a different call required?
If Nettle is configured with --enable-fat, choice of assembly routines is done at runtime. Otherwise, it's a compile-time choice.
Regarding sha1, development version (to be nettle-3.5) can use sha_ni instructions on x86_64, for both sha1 and sha256.
There isn't yet any assembly code for ARMv8.
Regards, /Niels
On Mon, Jun 3, 2019 at 5:31 AM Niels Möller nisse@lysator.liu.se wrote:
Jeffrey Walton noloader@gmail.com writes:
Does SHA-1 switch to hardware acceleration for x86 and ARMv8 automatically? Or is a different call required?
If Nettle is configured with --enable-fat, choice of assembly routines is done at runtime. Otherwise, it's a compile-time choice.
Regarding sha1, development version (to be nettle-3.5) can use sha_ni instructions on x86_64, for both sha1 and sha256.
There isn't yet any assembly code for ARMv8.
Thanks Niels.
Are there any plans for ARMv8?
The reason I ask is, I want to recommend Nettle for a project. The two biggest use cases are x86 and ARM (both 32-bit and 64-bit flavors). Candidate libraries should have support for Intel and ARM acceleration.
If ARMv8 is several months away then Nettle is a candidate. If there are no plans then other libraries should be evaluated.
Jeff
Jeffrey Walton noloader@gmail.com writes:
Are there any plans for ARMv8?
I'm not planning to work on that soon, and I don't have any convenient access to ARMv8 hardware. Contributions welcome.
Regards, /Niels
On Mon, Jun 3, 2019 at 8:21 AM Niels Möller nisse@lysator.liu.se wrote:
Jeffrey Walton noloader@gmail.com writes:
Are there any plans for ARMv8?
I'm not planning to work on that soon, and I don't have any convenient access to ARMv8 hardware. Contributions welcome.
Sorry, I have not acquired a taste for the m4 programming.
You cn access Aarch64 hardware on the GCC Compile Farm. GCC117 and GCC118 are Aarch64 with crypto extensions.
Jeff
nettle-bugs@lists.lysator.liu.se