summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/sha/sha256_aarch64_ce.S (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Use .arch rather than .cpu for sha2 instructions.jsing2025-03-121-2/+2
| | | | | | | We have code that targets a specific architecture level, hence .arch makes more sense here than .cpu. Suggested by kettenis@
* Provide an accelerated SHA-256 assembly implementation for aarch64.jsing2025-03-071-0/+189
This provides a SHA-256 assembly implementation that makes use of the ARM Cryptographic Extension (CE), which is found on many arm64 CPUs. This gives a performance gain of up to 7.5x on an Apple M2 (dependent on block size). If an aarch64 machine does not have SHA2 support, then we'll fall back to using the existing C implementation. ok kettenis@ tb@