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)
Dec 6 2024, 6:34 AM
Unknown Object (File)
Nov 27 2024, 5:06 AM
Unknown Object (File)
Nov 27 2024, 5:05 AM
Unknown Object (File)
Nov 27 2024, 5:05 AM
Unknown Object (File)
Nov 27 2024, 4:45 AM
Unknown Object (File)
Nov 22 2024, 11:06 PM
Unknown Object (File)
Nov 22 2024, 10:25 AM
Unknown Object (File)
Nov 22 2024, 10:25 AM
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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 43279
Build 40167: arc lint + arc unit

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.