Page MenuHomeFreeBSD

Add accelerated arm64 sha512 to libmd
ClosedPublic

Authored by andrew on Dec 10 2021, 1:42 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Apr 22, 3:24 AM
Unknown Object (File)
Fri, Apr 19, 12:59 PM
Unknown Object (File)
Mon, Apr 15, 2:38 AM
Unknown Object (File)
Mon, Apr 15, 12:11 AM
Unknown Object (File)
Sun, Mar 31, 12:01 AM
Unknown Object (File)
Sat, Mar 30, 11:47 PM
Unknown Object (File)
Mar 7 2024, 9:57 PM
Unknown Object (File)
Jan 10 2024, 2:44 PM
Subscribers

Details

Summary

As with sha256 add support for accelerated sha512 support to libmd on
arm64. This depends on clang 13+ to build as this is the first release
with the needed intrinsics. Gcc should also support them, however from
a currently unknown release.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Lgtm. I didn’t attempt to verify the asm implementation.

lib/libmd/Makefile
140

Is sha3 the right extension for sha2-512? The sha3 feature bit seems unrelated to sha2 and I am unable to find documentation for the march flag.

This revision is now accepted and ready to land.Dec 11 2021, 5:40 PM
lib/libmd/Makefile
140

Yes, I checked on both clang and llvm. The compiler developers seem to have grouped sha512 and sha3 together because they were both added in armv8.2.

This revision was automatically updated to reflect the committed changes.